megaman54 Posted November 23, 2012 Posted November 23, 2012 Today i started to seriously look into the MTA source code. I have explored it much and it looks very interesting. I also did some (very) small tests and they worked nicely. But, i have a slight problem here: in CMultiplayerSA.cpp, when i disable some hook (not actually sure if they are hooks lol), for example i comment out this: MemPut < BYTE > ( 0x4629E0, 0xC3 ); from the comment above it i understaned that it should prevent SA from generating roadblocks, but when i comment it out and go see ingame it still doesnt generate roadblocks. What am i missing here? I guess its something obvious but for me, who isnt experienced in hooking games, it looks very confusing. I hope that someone that actually knows these things explains to me what is going on. Thanks
megaman54 Posted November 30, 2012 Author Posted November 30, 2012 Okay thanks I will look into it and try some more stuff
x86 Posted November 30, 2012 Posted November 30, 2012 It will be hard I can tell you. Why do you want to do it? Why not just createObject ?
megaman54 Posted December 1, 2012 Author Posted December 1, 2012 The roadblocks was just an example. I try to disable some other hooks too and see if they work. Mostly i will be testing if i can get the game to load main.scm again and some npc's too.
x86 Posted December 5, 2012 Posted December 5, 2012 You can't let a NPC spawn by main.scm, MTA will crash. Because this 'NPC' wasn't created by MTA.
Recommended Posts