Category | Farming Simulator 2011 |
Created | 22.11.2010 00:03 |
Linus Ek (Unknown) | 22.11.2010 00:07 |
---|---|
I'm trying to make a trigger and I got it loading with the new onCreate callback. But the id in "function objectOnCreate(id)" returns a table. According to your documentation it should be a int. I cant use the addTrigger with a table =/ And I have a function to print tables but either it's huge or it triggers an endless loop in that function cause the log growed to 800mb before the game crashed. I managed to shut down the endless loop thing and this is the table: [print_r] = function: 118B0688 [source] = function: 11362C28 [testOnCreate] = function: 118B0748 [test] : [_G] : [deleteFolder] = [loadMod] = [loadstring] = function: 11363008 [registerObjectClassName] = function: 11363188 [g_onCreateUtil] : [InitStaticEventClass] = [loadModDesc] = [g_i18n] : [deleteFile] = [InitEventClass] = function: 11363168 print_r is the function that prints tables. When it says : it should be another table there but thats the part with the loop. test is the name of my mod |
Andreas Großschedl (Unknown) | 22.11.2010 08:39 |
---|---|
I had the same problem - and 2 solution (own solution and one from Mr. Geiger), look there: http://gdn.giants-software.com/thread.php?categoryId=16&threadId=556 |
Linus Ek (Unknown) | 22.11.2010 13:35 |
---|---|
Thanks it worked. Saw that thread before and tried what it said. The only thing I didnt try was "modNameOnCreate = modName.onCreate". Now it works. :) Have fun. |
Note: Log in to post. Create a new account here.