Scripts not loading

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

Scripts not loading

Postby dargon » Thu Jan 12, 2017 10:13 pm

On my server, any time i restart the server, 1 or 2 of my scripts will stop working, the scripts are located in Debug\Scripts. I had temporarily fixed it by adding it to GameServerScripts and recompileing, but again they have quick working. Any idea why scripts that worked 5 minutes before restarting the server would no longer work?
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: Scripts not loading

Postby PlanarChaosRvrtwo » Fri Jan 13, 2017 5:55 am

Some of those scripts are assicioated with other scripts n such so if you change something on the code you can break a code you dint touched couse it read out something from the script you just edited.
DOL dint only gaved me the data to start my server,
it also gaved me 16 amazing years with nice peeps,
and now its on me to return the favor.
User avatar
PlanarChaosRvrtwo
Database Team
 
Posts: 517
Joined: Thu Jul 07, 2016 6:21 am

Re: Scripts not loading

Postby dargon » Fri Jan 13, 2017 7:36 am

If it was core code maybe, but these are custom scripts, and no code was changed between reboots
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: Scripts not loading

Postby HunabKu » Fri Jan 13, 2017 8:19 am

The files directly in Debug/Scripts can not work or not loaded, try tu put it in a subfoler like Debug/Scripts/dargonScripts/myscript.cs
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: Scripts not loading

Postby dargon » Fri Jan 13, 2017 8:28 am

they are subfoldered /scripts/custom/mobs or items etc to stay organized. Its weird if i restart the server 3 or 4 times they start working again, just to stop on next revoot again.. it makes it difficult to make custom scripts haha
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: Scripts not loading

Postby dargon » Fri Jan 13, 2017 8:30 am

Weirdest part is its not like the scripts error out. The server will load up, as if the scripts arent there at all
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: Scripts not loading

Postby LugusSkye » Fri Jan 13, 2017 11:39 am

If you switch to Release mode, you need scripts to be in Release folder as well.
A suggestion, to make it easy on yourself (I might get yelled at by some devs here) - create a class for each script in gameserver and let it load automatically no matter what environment you in and no external files are required. Don't do it for all, only ones you need.
User avatar
LugusSkye
DOL Initiate
 
Posts: 20
Joined: Fri Sep 09, 2016 4:05 am

Re: Scripts not loading

Postby Loki » Sat Jan 14, 2017 5:16 pm

I think it would help if we knew what these scripts are!. Do they reference something in the database that is no longer there, trying to create something that is already there.

Can we see your error log also.

Thank you
“ If debugging is the process of removing software bugs, then programming must be the process of putting them in. ”

Join https://discord.gg/r3T2U7S Official DOL Discord Chat
User avatar
Loki
Developer
 
Posts: 468
Joined: Fri Jun 23, 2006 2:14 am
Location: uk

Re: Scripts not loading

Postby dargon » Sat Jan 14, 2017 11:24 pm

Weirdest part is its not like the scripts error out.
Error logs only pop up for replaceing npc classes being replaced by GameNpc. No actual code error. I rearranged some of my scripts and they're loading for now i may have to juat keep moving them if it happens again
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: Scripts not loading

Postby Loki » Sat Jan 14, 2017 11:51 pm

Not really a solution but if it works for you, I guess crack on

Good luck

Jay
“ If debugging is the process of removing software bugs, then programming must be the process of putting them in. ”

Join https://discord.gg/r3T2U7S Official DOL Discord Chat
User avatar
Loki
Developer
 
Posts: 468
Joined: Fri Jun 23, 2006 2:14 am
Location: uk


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest