1. Include error logs. Both client and server side
Required resources: cw-crafting
ResourceCache::AddEntry: Saved cache:v1:053fe0f36fd60c1eac894023b0ac0f6111492eda to the index cache.
Creating script environments for cw-crafting
Error parsing script @cw-crafting/config.lua in resource cw-crafting: @cw-crafting/config.lua:505: malformed number near '9m'
Failed to load script config.lua.
Error parsing script @cw-crafting/config.lua in resource cw-crafting: @cw-crafting/config.lua:505: malformed number near '9m'
Failed to load script config.lua.
^1SCRIPT ERROR: @cw-crafting/bridge/client/qbox.lua:3: attempt to index a nil value (global 'Config')^7
^3> fn^7 (^5@cw-crafting/bridge/client/qbox.lua^7:3)
^1SCRIPT ERROR: @cw-crafting/client/client.lua:8: attempt to index a nil value (global 'Config')^7
^3> fn^7 (^5@cw-crafting/client/client.lua^7:8)
Uncaught (in promise) AxiosError: Request failed with status code 404 (@cw-crafting/html/dist/assets/index-e7dbe031.js:7)
2. When did the error occur?
Error occurred when attempting to add ammunition to a crafting table. It appears to be due to the formatting/naming of the item as ammo-9mm.
3. Did you change anything in the config?
Example of item that was added to the config below:
['ammo-9mm'] = {
category = "Ammunition", -- category
toItems = { -- table that includes the output and their amounts, this one will output 2 lockpicks
ammo-9mm = 20,
},
type = nil, -- type of recipe. This is used to display breakdown recipes correctly for example. Valid values: nil or 'breakdown'
materials = { -- table that includes the input and their material cost
ls_copper_ingot = 1,
ls_lead_ingot = 1,
},
label = '9×19mm Rounds', -- label that shows in crafting menu, will default to item in toItems (if 1) or the recipe name (in this case 'lockpick') otherwise (optional, higly suggested)
craftingSkill= 0, -- crafting skill required to craft this. Defaults to 0 if unset (optional)
craftingTime= 5000, -- crafting time (optional)
tables = {'ammo'}, -- specific tables this recipe can be made at
},
4. Did you double check your config file changes?
Yes, I made certain to confirm that there were no differences from the other items I had successfully added to crafting tables before
5. Did you change anything outside of the Config file? Did you try with a clean version?
I have not made any changes outside of the config file
6. Post your Debug Logs
Nothing is debugged as the script fails on start up
7. Do you have any other scripts that might have and impact on the issue?
N/A
8. If any items, did you add all the items?
N/A
9. Have you investigated the error location and confirmed that it's not due to your other scripts?
Yes, the error location is in the cw-crafting config file and is not caused by other scripts
10. Be specific: Exactly what did you do to cause the error.
Added item ammo-9mm to a crafting table I was making for ammunition. The error occurs due to naming/formatting of the item in the toItems option of the crafting item setup.
