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 


Issues compiling v7

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
Ultraplayer
Newbie cheater
Reputation: 0

Joined: 06 Apr 2019
Posts: 20

PostPosted: Thu Aug 22, 2019 10:05 am    Post subject: Issues compiling v7 Reply with quote

I've got some issues while compiling 7 version (previous 6.8.3 - is OK).

1. This form is amazing. I believe some guys gonna crazy when it's appears Very Happy
Anyway. I've got this:

Code:
unit frmMicrotransactionsUnit;

var
  frmMicroTransactions: TfrmMicroTransactions;

procedure TfrmMicroTransactions.BitBtn1Click(Sender: TObject);
var ss: TStringstream;
begin
  if internet=nil then
    internet:=TWinInternet.Create('Cheat Engine microtransaction system');

  ss:=tstringstream.create; <====================

frmmicrotransactionsunit.pas(70,20) Error: Incompatible types: got "TStringStream.constructor Create(const AnsiString);" expected "TStringStream"

2. I believe this is from "NextGen" Delphi. There is no TEncoding overloads in Lazarus. So:

Code:
unit LuaStrings;

function strings_loadFromFile(L: Plua_State): integer; cdecl;
var
  strings: TStrings;
  ignoreencoding: boolean=true;
begin
  result:=0;
  strings:=luaclass_getClassObject(L);

  if lua_gettop(L)>=1 then
  begin
    if lua_Gettop(L)>=2 then
      ignoreencoding:=lua_toboolean(L,2);

    try
      strings.LoadFromFile(lua_tostring(L, 1), ignoreencoding); <=============

LuaStrings.pas(221,63) Error: Wrong number of parameters specified for call to "LoadFromFile"

3. Same as before.

Code:
unit LuaHandler;

function lua_loadPOFile(L: PLua_State): integer; cdecl;
var
  POFile: TPOFile;
  filename: string;
  postrings: TStringlist;
begin
  if lua_gettop(L)>=1 then
  begin
    postrings:=Tstringlist.create;
    try
      filename:=Lua_ToString(L, 1);
      postrings.LoadFromFile(filename, true); <==================

LuaHandler.pas(8356,45) Error: Wrong number of parameters specified for call to "LoadFromFile"



2019-08-22_144002.png
 Description:
 Filesize:  272.71 KB
 Viewed:  11113 Time(s)

2019-08-22_144002.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Aug 22, 2019 10:54 am    Post subject: Reply with quote

currently using a freepascal 3.2.0 beta myself.

not much new though just some minor rtl bugfixes like xml handling, but 3.0 is ok as well, you just need to remove the ,true (ignoreEncoding) from loadFromFile

and stringstream.create needs an empty string like stringstream.create('')

_________________
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
drunker
How do I cheat?
Reputation: 0

Joined: 09 Jul 2017
Posts: 6

PostPosted: Sat Sep 21, 2019 8:22 pm    Post subject: Reply with quote

expecting this issue right now when trying to compile x64

"
count:=min(lua_objlen(L, 1), lua_tointeger(L, 2)) //prevent the length from exeeding the table
"



LuaStream.pas(219,16) Error: Can't determine which overloaded function to call


Any help please ?

Lazarus Version #2.0.0
FPC Version : 3.0.4
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Sep 29, 2019 6:14 pm    Post subject: Reply with quote

Use fpc 3.2.0

else add some typecasts. One of them may have to be typecast to an integer

_________________
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
GreenNightfall
How do I cheat?
Reputation: 0

Joined: 19 Aug 2019
Posts: 4
Location: Germany

PostPosted: Fri Mar 27, 2020 8:00 pm    Post subject: Identifier not found (error) Reply with quote

Code:
if pid=0 then
1.    pid:=GetCurrentProcessId;
2.   
3.  processhandle:=dbk32functions.OP(ifthen<dword>
4. (GetSystemType<=6,$1f0fff, process_all_access), true, pid);
5.
6.  filemap:=tmemorystream.Create;
7.  try                               


How do I have to change the code to make it work? (It says "ifthen" in line 3 is wrong)

_________________
Just started with cheat engine and assembly

My discord is N͇̼̹i̲̦g̳͓͙h̤̥͖t̖͇̺f̮̖a͚l̥l͈#0169
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sat Mar 28, 2020 2:38 am    Post subject: Reply with quote

include "math" in the uses and remove the <dword>
_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source 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