DayZ
Jimblez Oct 11, 2019 @ 8:54am
Please,A little Help with this Init.C file
We've had a server running with some of the cool mods we have been acquiring from the workshop this week, to find a couple of days ago we had installed some extra trader mods and needing to edit this init C file. I am no longer able to get the server running after implementing this code from 'RaG Trader' Mods. We had success up until a couple of days ago when i tried to add another trader and without even touching at this point the init.C file the whole thing has gone corrupt on me. we dont really want to reset after days and days of piling this all together for a fun server to be foiled at same constant error and unable to connect...

the error we are getting

"JSON ERROR:
Must be a comma or '}' after an object member
Function: 'Error'
Stack trace:
scripts/1_Core/proto\endebug.c:44
scripts/3_Game/tools\jsonfileloader.c:29
VanillaPPMap/3_Game/json\jsoncachemanager.c:14
VanillaPPMap/3_Game/json\jsoncachemanager.c:9
VanillaPPMap/3_Game/json\servermarkerscache.c:5
VanillaPPMap/5_Mission/missionserver.c:4

$CurrentDir:mpmissions\dayzOffline.chernarusplus\init.c:292" <------ THIS ERROR!

I have changed the load out several times and had no problems with, we are copying and pasting carefully from once working code back in to find it no longer works!

can anyone please help me with this.. i understand the init.c:292 relates to the line of the coding, which to my suprise doesnt even have 150 lines of code in the init.c file, soooooooo.. do we reset, again?
Has Anyone got a working init.c file that works with this building .c file or is it not me and this is just a typical day at the office for dayZ lol?
< >
Showing 1-8 of 8 comments
SmashT Oct 11, 2019 @ 9:25am 
I can try it when I get home, do you have other changes to your init file or is it just a default with the building code added from one of the RaG mods?

If you have other changes like loadout scripts maybe share the init file here?

Also which RaG mod as I can see a few different ones on the workshop?
Last edited by SmashT; Oct 11, 2019 @ 9:26am
Jimblez Oct 11, 2019 @ 9:28am 
i tried all of them and yes i added that code into the top as specified by the mod, and also tried there own one (has a nooby init.c if u dunno what your doing) and then reverted back to the default. We had a brain wave and decided to back up the server and try a wipe, the error still there.. so i think its possibly another issue linked.. were still tinkering too so any help towards would be a great help. we have lost literally days of staring at this code trying to figure it out and this was my last resort tbh.
Mad Mike Oct 11, 2019 @ 9:37am 
Comforts. Good luck getting it all worked out!
Jimblez Oct 11, 2019 @ 9:41am 
Thank you, I'm kinda running out of hair to pull out..... and i dunno how much more coffee i can drink and sleep i can lose.. i just wanted kill some zombies and walk the apocalyptic wastelands of Chernerus.
SmashT Oct 11, 2019 @ 9:53am 
So you get the same error when using a default or their init.c file?
Jimblez Oct 11, 2019 @ 10:00am 
yea, no idea whats going on, we have wiped it and the server seems to be playing ball now, maybe jsut needed time to catch up from these new errors.. the server log is telling us there is errors but i think that just the game.. as there is things not spawning etc in the map... will keep adding mods back to where we were to see if it happens again.. had issues with xombies and loot jsut completely dissapearing yesterday too after adding the Rag mod, so not sure whats going on... its becoming very time consuming and im losing the love for the game tbh.. But i wont let it beat me.. would like to add ATMS , which is initally where this all started, you have to add that Building.C file in order to make them appear.. its taken me 3 days to figure that out lol..
Nica Oct 11, 2019 @ 10:17am 
Are you sure youre diting the right file? Like that you dont have some backup open by accident. Because it seems really weird to get a syntax error from a line that doesnt exist
XplosiV Oct 12, 2019 @ 5:08am 
Download notepad++ then use it to open init.c and scroll down to line 292, and add the comma or } would be my guess.
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Oct 11, 2019 @ 8:54am
Posts: 8