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 


Autobuild script [CE6, Lazarus, source]
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4187
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Apr 01, 2011 5:16 am    Post subject: Reply with quote

Dark Byte wrote:
I'd rather change it to addfile(cheatenginedir+'win32\dbghelp.dll','win32'); so it gets extracted to the win32 folder when ran

Revision 825:
file extracted as win32dbghelp.dll, folder win32 is empty.

I think this line should be like this:
addfile(cheatenginedir+'win32\dbghelp.dll','win32\');

tested.

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 342

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

PostPosted: Fri Apr 01, 2011 5:56 am    Post subject: Reply with quote

fixed it, but in the extractor path
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Csimbi
Grandmaster Cheater Supreme
Reputation: 67

Joined: 14 Jul 2007
Posts: 1954

PostPosted: Tue Aug 16, 2011 12:36 am    Post subject: Reply with quote

The script does not work.
First, I get this:
Quote:
something is wrong, place autobuild folder inside "cheat engine 6"
Press any key to continue . . .
The system cannot find the batch label specified - EOF

Then, I had to dig your script to find out that the script actually has to be at this location:
Code:
C:\CE6.SVN\Cheat Engine\cheat engine 6\autobuild.cmd

I put it to the right place and I ran it again, only to get this:
Quote:
The system cannot find the file C:\TMP\lazarusuninstallkey.txt.
Lazarus path not found.
Press any key to continue . . .
The system cannot find the batch label specified - EOF

This is where I give up.
Windows 7 x64 SP1
Lazarus-0.9.31-31991-fpc-2.5.1-20110816-win32

I installed Lazarus to default dir, with default settings, fixed the two obvious installer bugs, too:
1. "Error: fpc.cfg is missing."
Apparently, they missed it from the installer.
Created default config file like this:
Code:
fpcmkcfg -d "basepath=C:\lazarus\fpc\2.5.1" -o C:\lazarus\fpc\2.5.1\bin\i386-win32\fpc.cfg

2. Selected the right directory for FPC sources:
Code:
c:\LAZARUS\fpc\2.5.1\source\


Lazarus works, your script unfortunately does not.
If you have the time, please have a look and fix it.
Thank you!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4187
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Aug 16, 2011 2:42 pm    Post subject: Reply with quote

OK, I'll look at this.

Edit:
@Csimbi
Launch "regedit", go there HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Search for key named Lazarus at the beginning.
I have "Lazarus_is1", maybe you have "Lazarus_is2"? Anyway you can try this:

1) uninstall all Lazarus instances
2a) delete C:\Users\[yourwindowsaccount]\AppData\Local\lazarus

2b) delete all Lazarus_is* in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

3) install lazarus. "Lazarus-0.9.31-31976-fpc-2.4.4-20110816-win64" or "Lazarus-0.9.31-31991-fpc-2.4.4-20110816-win32"


Btw. I tested both lazarus version (win64 and win32; FPC2.4.4)


@DarkByte

What is better? fpc-2.4.4 or fpc-2.5.1? I'm using 2.4.4

_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
Grandmaster Cheater Supreme
Reputation: 67

Joined: 14 Jul 2007
Posts: 1954

PostPosted: Tue Aug 16, 2011 4:28 pm    Post subject: Reply with quote

mgr.inz.Player wrote:
OK, I'll look at this.

Edit:
@Csimbi
Launch "regedit", go there HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Search for key named Lazarus at the beginning.
I have "Lazarus_is1", maybe you have "Lazarus_is2"?

There's no Lazarus at all there.
mgr.inz.Player wrote:
Anyway you can try this:

1) uninstall all Lazarus instances
2a) delete C:\Users\[yourwindowsaccount]\AppData\Local\lazarus

2b) delete all Lazarus_is* in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

3) install lazarus. "Lazarus-0.9.31-31976-fpc-2.4.4-20110816-win64" or "Lazarus-0.9.31-31991-fpc-2.4.4-20110816-win32"

Uninstalled 32bit and installed 64bit:
Lazarus-0.9.31-31976-fpc-2.4.4-20110816-win64
Same result.

mgr.inz.Player wrote:
Btw. I tested both lazarus version (win64 and win32; FPC2.4.4)


@DarkByte

What is better? fpc-2.4.4 or fpc-2.5.1? I'm using 2.4.4

DB told me to use 2.4 as 2.5 throws errors (won't let CE be compiled).
CE compiles with this but your script still would not run.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 342

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

PostPosted: Tue Aug 16, 2011 4:31 pm    Post subject: Reply with quote

Quote:

What is better? fpc-2.4.4 or fpc-2.5.1? I'm using 2.4.4

2.5.1 is 'better', but the ce sourcecode is still based on 2.4.4 (it makes use of one ugly dirty trick, accessing a private variable in another class, but can easily be changed)

recently lazarus has updated the way they store stuff, could be related...
not sure if %localappdata%\lazarus still contains the settings

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4187
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Aug 16, 2011 4:43 pm    Post subject: Reply with quote

Csimbi wrote:

mgr.inz.Player wrote:
Search for key named Lazarus at the beginning.
I have "Lazarus_is1", maybe you have "Lazarus_is2"?
There's no Lazarus at all there.

Weird. It must be there!

And my script depends on it.

I uninstalled all. Cleaned C:\Users\[yourwindowsaccount]\AppData\Local\lazarus

Checked HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, there wasn't lazarus_is1.

Installed lazarus (32bit) again. Checked uninstall key (lazarus_is1 was there). Downloaded cheat engine via tortoisesvn (revision 1009). Moved autobuild folder (with autobuild.cmd file inside). So from the top there are: .svn, allochook, autobuild, bin, ceserver, compilersettings, ........... folders.

Double clicked on autobuild.cmd . Everything went smoothly.
BTW. my lazarus path is "C:\testtestautobuildtesttest\lazarus"




@Dark Byte. Ok, thanks.

_________________


Last edited by mgr.inz.Player on Tue Aug 16, 2011 5:33 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Csimbi
Grandmaster Cheater Supreme
Reputation: 67

Joined: 14 Jul 2007
Posts: 1954

PostPosted: Tue Aug 16, 2011 5:02 pm    Post subject: Reply with quote

Nope, nothing.
Installed Lazarus-0.9.31-31991-fpc-2.4.4-20110816-win32 to check.
Same result.


Last edited by Csimbi on Tue Aug 16, 2011 5:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4187
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Aug 16, 2011 5:12 pm    Post subject: Reply with quote

Try this:
http://fxtoolzz.republika.pl/autobuild_manual.rar

You must set path manually

Code:
rem set path to lazbuild.exe
set prog="C:\lazarus\lazbuild.exe"


to

Code:
rem set path to lazbuild.exe
set prog="X:\mypath_lazarussomething\lazbuild.exe"

_________________
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4187
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Aug 17, 2011 11:01 am    Post subject: Reply with quote


Link

_________________
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4187
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Aug 14, 2013 11:15 am    Post subject: Reply with quote

I found out a way to cross compile (32bit and 64bit CE) with Lazarus on Win7 64bit.

Steps:
- uninstall any existing Lazarus

- download lazarus-1.0.10-fpc-2.6.2-win32
- download lazarus-1.0.10-fpc-2.6.2-win64

- install lazarus-1.0.10-fpc-2.6.2-win32 into C:\CrossLazarus
- choose "Delete all user configuration ...." option

- go to C:\CrossLazarus\fpc\2.6.2\bin
- rename "i386-win32" folder to "i386-win32 LOCK"
- go to C:\CrossLazarus\fpc\2.6.2\units
- rename "i386-win32" folder to "i386-win32 LOCK"

- uninstall 32bit Lazarus, do not remove anything from C:\CrossLazarus

- install lazarus-1.0.10-fpc-2.6.2-win64 into C:\CrossLazarus
- choose "Delete all user configuration ...." option

- go to C:\CrossLazarus\fpc\2.6.2\bin
- rename "i386-win32 LOCK" folder to "i386-win32"
- go to C:\CrossLazarus\fpc\2.6.2\units
- rename "i386-win32 LOCK" folder to "i386-win32"

- inside C:\CrossLazarus open environmentoptions.xml

find x86_64-win64
and replace with $(TargetCPU)-$(TargetOS)

- extra step - to be perfectly sure, delete lazarus folder inside C:\Users\{username}\AppData\Local\

Now you have Lazarus with both compilers (32 and 64). Add "C:\CrossLazarus" to your system variable PATH.


Graphical Lazarus will compile to 64bit by default.

I'm using this when I want to compile 64bit CE:
Code:
lazbuild.exe --os=win64 --cpu=x86_64 cheatengine.lpi


and this for 32bit:
Code:
lazbuild.exe --os=win32 --cpu=i386 cheatengine.lpi

_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
Grandmaster Cheater Supreme
Reputation: 67

Joined: 14 Jul 2007
Posts: 1954

PostPosted: Wed Aug 14, 2013 2:24 pm    Post subject: Reply with quote

I think I will give this a try (but not right now) - thanks!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4187
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Mar 25, 2014 10:05 pm    Post subject: Reply with quote

How to cross compile (32bit and 64bit CE) with Lazarus on WinXP or Win7

Steps:
- uninstall any existing Lazarus

- download lazarus-1.0.14-fpc-2.6.2-win32.exe
- download fpc-2.6.2.x86_64-win64.exe

- install lazarus-1.0.14-fpc-2.6.2-win32.exe into C:\CrossLazarus
- choose "Delete all user configuration ...." option
- install fpc-2.6.2.x86_64-win64.exe into C:\CrossLazarus\fpc\2.6.2

- add "C:\CrossLazarus" to your system variable PATH
- done

use this to compile 32bit CE:
lazbuild.exe --os=win32 --cpu=i386 cheatengine.lpi

or just this (default is i386)
lazbuild.exe cheatengine.lpi


use this to compile 64bit CE:
lazbuild.exe --os=win64 --cpu=x86_64 cheatengine.lpi

_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
Grandmaster Cheater Supreme
Reputation: 67

Joined: 14 Jul 2007
Posts: 1954

PostPosted: Wed Mar 26, 2014 3:50 pm    Post subject: Reply with quote

Thanks for the update!
Back to top
View user's profile Send private message
ColdFusion73
Advanced Cheater
Reputation: 4

Joined: 02 May 2012
Posts: 75
Location: Flatland

PostPosted: Mon Mar 31, 2014 5:46 am    Post subject: Reply with quote

Hello. Using:

lazbuild.exe --os=win32 --cpu=i386 cheatengine.lpi

I am getting this error:
Code:
cheatengine.lpr(205,1) Error: Error while compiling resources
cheatengine.lpr(205,1) Fatal: There were 1 errors compiling module, stopping.

On the other hand, x86_64 compiles without errors, but when executed show this:



Does anyone have the same problem?

_________________
The richest man is not he who has the most, but he who needs the least.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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