Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Generating a full standalone help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
DamiPL
Grandmaster Cheater Supreme
Reputation: 3

Joined: 02 Jul 2006
Posts: 1195
Location: 11001110

PostPosted: Sat Mar 30, 2013 7:53 pm    Post subject: Generating a full standalone help Reply with quote

so i made a simple trainer w/ CE 6.2 just for the heck of it and wanted to try the new maker but cant get it to be standalone without CE installed. It works perfectly on the partition i made it on but if i switch to W7 or use VM to test it, it just crashes on start. If i resave the CT there w/ CE again, it works.

Its generated GUIs, saved as .exe, icon, gigantic, compr none. Gui alone runs fine everywhere so prolly messed up on the code. Can I still use bydescription in standalone? Anyway here is my code:

Code:

AboutForm=createFormFromFile([[K:\Documents and Settings\Administrator\My Documents\My Cheat Tables\AboutBox2.FRM]]);

--Global Vars--
bballs = addresslist_getMemoryRecordByDescription(getAddressList(),'BB (Agility too)');
healthLeft= addresslist_getMemoryRecordByDescription(getAddressList(),'RHealth');
healthRight = addresslist_getMemoryRecordByDescription(getAddressList(),'Oponent');
comboAddy = addresslist_getMemoryRecordByDescription(getAddressList(),'Combo Meter');
strikeAddy = addresslist_getMemoryRecordByDescription(getAddressList(),'Strike');
--HKey--
--createHotkey(CEButton5Click, VK_CONTROL, VK_F5);
--------
function AboutClick(sender)
form_show(AboutForm);
end

function CEButton5Click(sender)
memoryrecord_setValue(bballs, memoryrecord_getValue(bballs)+5);
end

function CEButton1Click(sender)
memoryrecord_setValue(healthRight, memoryrecord_getValue(healthRight)+250);
end

function CEButton3Click(sender)
memoryrecord_setValue(healthLeft, memoryrecord_getValue(healthLeft)+250);
end

function CEButton2Click(sender)  --Right Side HP Set
memoryrecord_setValue(healthRight, control_getCaption(LBMain_CEEdit1));
end

function CEButton4Click(sender)
memoryrecord_setValue(healthLeft, control_getCaption(LBMain_CEEdit2));
end

function CETimerr1(sender)
control_setCaption(LBMain_CELabel6, memoryrecord_getValue(healthRight));
control_setCaption(LBMain_CELabel7, memoryrecord_getValue(healthLeft));
control_setCaption(LBMain_CELabel8, memoryrecord_getValue(bballs));
control_setCaption(LBMain_CELabel9, memoryrecord_getValue(comboAddy));
control_setCaption(LBMain_CELabel10, memoryrecord_getValue(strikeAddy));
end

hpTimer = createTimer(LBMain,true)
timer_setInterval(hpTimer, 700)
timer_onTimer(hpTimer, CETimerr1)

function CEButton6Click(sender)
memoryrecord_setValue(comboAddy, control_getCaption(LBMain_CEEdit3));
end

function CEButton7Click(sender)
memoryrecord_setValue(strikeAddy, control_getCaption(LBMain_CEEdit4));
end
--GEN--
strings_add(getAutoAttachList(), "REALLIVE.EXE")
gBeepOnAction=false
form_show(LBMain)

function FormClose(sender)
closeCE()
  return caFree
end

_________________
Back to top
View user's profile Send private message AIM Address
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Sat Mar 30, 2013 8:02 pm    Post subject: Reply with quote

Does your windows 7 and vm have K:\Documents and Settings\Administrator\My Documents\My Cheat Tables\AboutBox2.FRM

If not i recommend putting the frm inside the trainer and use getCheatEngineDir() to get the path to the file (or have the form inside the table to start with)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
DamiPL
Grandmaster Cheater Supreme
Reputation: 3

Joined: 02 Jul 2006
Posts: 1195
Location: 11001110

PostPosted: Sat Mar 30, 2013 9:41 pm    Post subject: Reply with quote

ah that was it, thanks! Got it to work now via calling it from table. I remember trying to cut the form file out of the dir before and it still ran somehow so that messed me up. Must have cut the old file or something XD
_________________
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites