Closed x87 closed 2 years ago
My observations in this regard:
Generalizing this a bit, since almost every command can produce problematic memory manipulation, the SEH could encapsulate the script execution tick itself, instead of only these two commands. But the first problem would become even stronger in this method.
In my opinion this is a lost cause. Manipulating memory either goes well, or it doesn't. If it doesn't, you might want to provide a recovery mechanism, but that recovery mechanism varies from case to case. As such, instead, there could be a similar command that returns a boolean indicating failure [PS: CLEO would need to handle the memset
case, or even not support it]. But again, would that be useful? Would it be cost-effective for scripters to stop and think about failure recovery?
I think what I mean is, corrupting user data is worse than crashing, and this feature would go in that direction.
Reading and writing memory should happen in isolated and controlled manner and never cause the game to crash. Instead the error should be logged and the script shut down, while letting other scripts continue working.
Good afternoon seeman I hope you are well, seeman I know that this part is not about questions related to cleo android and sanny builder, but due to the bad collaboration that exists in android and questions from sanny I should ask you please .....
HELP ME.
I have several questions but I will only ask 3 of them.
seeman, how does the sanny builder compiler work, what do the opcodes do?
seeman, one day I was on the cleo android gtasaforums forum and alenxander blade had mounted a cleo android guide file in a ZIP, it was called dev-cleo, and unfortunately I couldn't find it, it was to ask if you have it from chance?
Regarding the new opcodes for android cleo, and for gta pc I have a question, how are opcodes created, what is needed to create them? I am currently newbie to java and c ++, I understand only a little bit of asmx86, and ARMV7.
Seeman teacher please just answer these questions, since in gtasaforums for asking this they rejected me, please just ask for a good information base, and what better from the creator of the best SANNY BUILDER tool, thank you and I hope your country is well of the covid19 and your family :)
@GoKuDead please don't post your questions in random tickets. Use public boards like gtaforums or scripting-related discord channels.
If you want to know how scripts work you should start from learning the information this is already available out there. I would suggest to read these articles: https://gtamods.com/wiki/SCM_language https://gtamods.com/wiki/SCM_Instruction
for more in-depth overview of GTA script internals: https://github.com/thelink2012/gta3sc - gta3 script compiler https://github.com/GTAmodding/re3/blob/master/src/control/Script.cpp - gta3 re-implementation
Then if you need details on how new opcodes are created, take a look into CLEO plugins implementation https://github.com/JuniorDjjr/CLEOPlus https://github.com/cleolibrary/opcodes-restoration-project
I can't provide you information on Android script, you should reach out to Alexander Blade who was working on that.
Reading and writing memory should happen in isolated and controlled manner and never cause the game to crash. Instead the error should be logged and the script shut down, while letting other scripts continue working.