Product Chat / Keep getting this error.

Author
Message
nelsonaddison
15
Years of Service
User Offline
Joined: 28th Aug 2009
Location:
Posted: 5th Jun 2014 04:56 Edited at: 5th Jun 2014 05:56
I keep getting this error when in game edit mode.



error running function: scriptbank\global.lua:84: attempt to index field '?' (a nil value)



I suspect it has to do with using animated trees from the vegpack.



EDIT: I should also add that the crash occurs when loading test game and the status is 'INITIALIZING PHYSICS'.
PM
Dralel
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 4th Nov 2013
Location: UK
Posted: 5th Jun 2014 05:29
It means it's missing a numeric number. So 0, 1, etc.

GPU: GTX 660, CPU: i7 3770 Intel 3.40ghz x4, PSU: 650 Watt, RAM: 8GB DDR3, OS: Win7 Ultimate 64-bit
PM
nelsonaddison
15
Years of Service
User Offline
Joined: 28th Aug 2009
Location:
Posted: 5th Jun 2014 05:53
I have no idea what that means.
PM
RustyNuts
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 9th Nov 2011
Location: Warwickshire Great Britain
Posted: 5th Jun 2014 08:09 Edited at: 5th Jun 2014 08:10
Hi



Quote: "error running function: scriptbank\global.lua:84: attempt to index field '?' (a nil value)"




this means you are getting an error in your global.lua script on line 84, which is this this line:



Quote: "g_Entity[e]['x'] = x;"




the entire function you are trying to call is this one:



Quote: "function UpdateEntityRT(e,object,x,y,z,col,key,zon,plrvis,hea,frm,tmr)

g_Entity[e]['x'] = x;

g_Entity[e]['y'] = y;

g_Entity[e]['z'] = z;

g_Entity[e]['obj'] = object;

g_Entity[e]['collected'] = col;

g_Entity[e]['haskey'] = key;

g_Entity[e]['plrinzone'] = zon;

g_Entity[e]['plrvisible'] = plrvis;

g_Entity[e]['health'] = hea;

g_Entity[e]['frame'] = frm;

g_Entity[e]['timer'] = tmr;

end"




so you could either re-install FPSC-Reloaded, or you can check the file for any errors within the function yourself. Locate the 'ScriptBank' folder in 'C:\Program Files\The Game Creators\FPS Creator Reloaded\Files\ ' and then rightclick on the file and then move down to 'OPENWITH' and select 'NotePad'. If there is an error with your function then make your changes, but make sure you 'SAVE!!!' the file before you close the program. I'm 99% sure it will ask you to save any changes before the program closes anyway.



RustyNuts

All programmers are playwrights and all computers are lousy actors.
PM

Login to post a reply

Server time is: 2024-11-22 01:45:06
Your offset time is: 2024-11-22 01:45:06