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 


Does C.E. lua supports REST?

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

Joined: 27 Sep 2016
Posts: 11

PostPosted: Wed Jan 10, 2018 7:39 am    Post subject: Does C.E. lua supports REST? Reply with quote

I am planning to create a trainer with login. I was hoping C.E. lua supports REST api with HTTP protocol. Also I've read that lua have a integer and float number type representation problem between version 5.3 and (5.2 and below),what version would C.E. lua support?Sorry for a lot of questions.Was also hoping to donate profits to C.E..
_________________
Just a normal programmer who knows java,c++,html,css,android,php,mysql,etc.

<b>Everything is free</b>
Back to top
View user's profile Send private message
FreeER
Master Cheater
Reputation: 17

Joined: 09 Aug 2013
Posts: 457

PostPosted: Wed Jan 10, 2018 8:15 am    Post subject: Reply with quote

The version question seems easy enough to answer print(_VERSION) in the lua engine window results in: Lua 5.3

no idea about rest (honestly I'm not entirely sure what it even is, I've just heard it thrown around lol), it does at least have a basic internet object (copy paste from celua.txt in install directory)
Code:
Internet class (Object)
global functions
  getInternet(string) - Returns an internet class object.  The string provided will be the name of the client provided

properties
  Header : string - the additional header to be sent with the next getURL request
methods
  getURL(path) - returns a string containing the contents of the url. nil on failure
  postURL(path, urlencodeddata) - posts the given data to the path and returns the results


but presumably if you can do it in lua at all you could find or create a lua file to load in CE...

edit: there is some database stuff too mentioned in celua.txt
Code:
----SQL Classes----
CustomConnection class (Inheritance: Component->Object)
properties
  Connected: Boolean - Gets the current connection state, and lets you connect as well
  LoginPrompt: Boolean
  AfterConnect: function(sender)
  AfterDisconnect: function(sender)
  BeforeConnect: function(sender)
  BeforeDisconnect: function(sender)
 
methods
  close(forceClose:Boolean Optional)
  open()


Database Class (Inheritance: CustomConnection->Component->Object)
properties
  Connected: Boolean
  DatabaseName: string
  KeepConnection: Boolean
  Params: Strings
  TransactionCount: integer readonly

methods

SQLConnection Class (Inheritance: Database->CustomConnection->Component->Object)
properties
  Password: String
  UserName: string
  Transaction: SQLTransaction - SQLTransaction object. Needs to be set
  CharSet: string
  HostName: string
  Options: string set - [scoExplicitConnect, scoApplyUpdatesChecksRowsAffected]

methods
  startTransaction()
  endTransaction()
  executeDirect(sql)
  getTableNames() : Returns a counted table with all tablenames


SQLite3Connection class(Inheritance: SQLConnection->Database->CustomConnection->Component->Object)
createSQLite3Connection(owner) - creates an SQLite3Connection object
setSQLiteLibraryName(pathwithdllname)- Lets you set the path to the sqlite3.dll in case it's not .\win*\sqlite3.dll

properties
methods
  createDB()
  dropDB()
  getInsertID(): integer

ODBCConnection class(Inheritance: SQLConnection->Database->CustomConnection->Component->Object)
createODBCConnection(owner) - creates an ODBCConnection object
properties
  Driver: string
  FileDSN: string

methods



DBTransaction class (Inheritance: Component->Object)
properties
  Active: boolean
  DataBase: Database
methods
  closeDataSets()

SQLTransaction class (Inheritence: DBTransaction->Component->Object)
createSQLTransaction(owner): Creates an SQLTransaction object
properties
  SQLConnection: SQLConnection
  Params: StringList
  Options: string - set of [stoUseImplicit, stoExplicitStart]
  Action: string - options between caNone, caCommit, caCommitRetaining, caRollback,
    caRollbackRetaining

methods
  commit() 
  commitRetaining()
  rollback()
  rollbackRetaining()
  startTransaction()
  endTransaction()


CustomSQLQuery class (Inheritance: CustomBufDataset->DBDataset->Dataset->Component->Object)
properties
  prepared: boolean READONLY
  SQLConnection: SQLConnection
  SQLTransaction: SQLTransaction


     
methods
  prepare()
  unprepare()
  execSQL()
  rowsAffected()
  paramByName(paramname): Param




SQLQuery class (Inheritance: CustomSQLQuery->CustomBufDataset->DBDataset->Dataset->Component->Object)
createSQLQuery(owner)
properties
  Database: Database

  SchemaType: string READFONLY - can be: stNoSchema, stTables, stSysTables, stProcedures, stColumns, stProcedureParams, stIndexes, stPackages, stSchemata, stSequences
  StatementType: string READONLY - can be :stUnknown, stSelect, stInsert, stUpdate, stDelete,
      stDDL, stGetSegment, stPutSegment, stExecProcedure,
      stStartTrans, stCommit, stRollback, stSelectForUpd

  Params: Params object
  ParamCheck: Boolean
  ParseSQL: Boolean
  UpdateMode: string - can be :upWhereAll, upWhereChanged, upWhereKeyOnly
  UsePrimaryKeyAsKey: boolean
  ReadOnly: boolean


  SQL: string
  InsertSQL: stringlist
  UpdateSQL: stringlist
  DeleteSQL: stringlist
  RefreshSQL: stringlist
  Options: string - set of [sqoKeepOpenOnCommit, sqoAutoApplyUpdates, sqoAutoCommit,
      sqoCancelUpdatesOnRefresh, sqoRefreshUsingSelect]


methods

Back to top
View user's profile Send private message
jobeth213
Newbie cheater
Reputation: 0

Joined: 27 Sep 2016
Posts: 11

PostPosted: Wed Jan 10, 2018 11:12 am    Post subject: Reply with quote

Thanks I will get back on this OOP classes when I'm at OOP chapter of the book. I think the Internet class will solve my problem considering it has the POST and GET method. Also REST just means connecting your application to the web or webserver etc., just something relating your application connecting to the web.
_________________
Just a normal programmer who knows java,c++,html,css,android,php,mysql,etc.

<b>Everything is free</b>
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 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