Scripts / [SOLVED] Troubleshooting

Author
Message
P_Gre
5
Years of Service
User Offline
Joined: 5th Dec 2019
Location:
Posted: 2nd May 2020 06:11
I'm trying to modify the teleporter script but as soon as I save a copy to the scriptbank folder with a modified name (teleportinzoneA.lua, etc.) the scrip ceases to function. Even without modified code. I'm using the steam version and Notepad.

The author of this post has marked a post as an answer.

Go to answer
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 2nd May 2020 11:15
This post has been marked by the post author as the answer.
1- LUA is case sensitive: try: teleportinzonea.lua
2- when you change script name you has to change it in the script as well, to match with.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 2nd May 2020 13:53
Lua is case sensitive but GG, for historical reasons presumably (earlier windoze compatibility?), only uses lower case for the scripts and _init/_main/_exit etc functions.

So the script names and interface function names must all be lower case in order to work.
Been there, done that, got all the T-Shirts!
PM
P_Gre
5
Years of Service
User Offline
Joined: 5th Dec 2019
Location:
Posted: 2nd May 2020 14:58
Thanks! I feel appropriately stupid as I now remember reading this in the scripting guide.
PM

Login to post a reply

Server time is: 2024-12-22 03:14:46
Your offset time is: 2024-12-22 03:14:46