Scripts / problem with smallg's crafting script

Author
Message
Honkeyboy
3D Media Maker
6
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 31st May 2021 20:57 Edited at: 31st May 2021 21:00
Hi guys, this script has been working fine until tonight where I edited the weapon/ammo entity numbers as i usually would and started getting this error weapon_crafting_table1.lua attempt to concatenate field ? a nil value? can anyone spot what it might be and why please
Cheers
p.s the error occurs at line 79 which is the weapon selection

Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
smallg
Community Leader
16
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 31st May 2021 22:14 Edited at: 31st May 2021 22:15
i'm guessing you have multiple different versions of the script and some of them have different amounts of craftable items - as the arrays aren't local it is causing an error.
to fix it make the arrays local - i don't remember if you need access to them from other scripts or not so if you do you'll have to use a multi-dimensional array instead of a local but for now try the local fix

the local fix looks like this


remember you will need to do this for all versions of the script
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
6
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 1st Jun 2021 12:53
Thanks G ....concatenate what a word means to connect of a sort so I gather? anyways thanks m8 will adjust all the others as needed.
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
Belidos
3D Media Maker
6
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 1st Jun 2021 16:51 Edited at: 1st Jun 2021 16:54
Quote: "concatenate what a word means to connect of a sort so I gather?"


It means to link things together in a chain or series.

Usually in programming strings it tends to mean joining character strings end to end, for example "fire fight" would become "firefight".
Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.


Login to post a reply

Server time is: 2022-01-25 05:19:50
Your offset time is: 2022-01-25 05:19:50