Scripts / Standalone not loading scripts?

Author
Message
absurd
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 2nd Mar 2020 20:27
When i exported my standalone game, the inventory system script wasn't working. the "E" to pickup wasn't showing up. i used this script: https://forum.game-guru.com/thread/207801?page=23#msg2599808
when i press "i" the inventory still works, i just cant pick up items/guns.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Mar 2020 20:41
first thing to check is if the scripts are actually in the standalone's files or not, sometimes the process misses things.
(you should find it in your 'my documents' folder)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
absurd
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 2nd Mar 2020 21:06
The inventory_pickup LUA file is in my standalone scriptbank though
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Mar 2020 15:26
I'm going to assume it is working in the test game?
So can you confirm that it doesn't get picked up when you press 'e' (even if there isn't a prompt)?

Also it was reported before that static items (i.e. items set to isstatic = 1 in the fpe) can sometimes not run scripts even if they are toggled in the editor

If the scripts are running and there's no errors it's just going to be trial and error to find the problem I'm afraid...
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
absurd
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 3rd Mar 2020 15:32
in the test version it worked amazing. i'll see if those items were static or not. i can confirm that the 'e' wasn't showing up + couldnt pick up the item.
PM
absurd
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 3rd Mar 2020 16:48
wait how can i get to the fpe?
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Mar 2020 18:35
is it every item or just 1 or a few particular items?
if it's a stock item give the name here and we can test too.

to find the fpe you will need to look in your GG files (as files in the standalone will be encrypted) - so "steam/steamapps/common/game guru/files/entitybank"
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
absurd
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 3rd Mar 2020 19:45
i haven't added a bunch of items, i've just added modernweapons pack guns and ammo. doesn't come up
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Mar 2020 20:20
odd, well it works for me, i did notice i needed to copy over the bmp files as the standalone only takes the fpe files over but even without that the prompt still shows - it would just crash if i opened the inventory with an item in it.

though even with it collecting and showing items correctly it still crashes when i try to right-click a gun inside the inventory (to equip it) and i have no idea why as it works fine in the editor... good old GG
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
absurd
4
Years of Service
User Offline
Joined: 11th Feb 2020
Location:
Posted: 3rd Mar 2020 20:39
should i just try to use another inventory system ? i'm having a hard time figuring out what you're saying tbh lol. i cant find: isstatic = 1
would that be in my standalone files? would i have to change it to 0?
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 4th Mar 2020 18:11
Yh if you have access to another inventory it might be a good idea to try that instead - as I say, while I can fix your current issue it still doesn't work properly for me either and I can't see any obvious issue and don't have the time to troubleshoot it when it doesn't give any error, the script works fine in the editor so I can only guess something is just broken with the standalone process and adding items the way I did it, sorry.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-04-16 06:38:52
Your offset time is: 2024-04-16 06:38:52