Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Trying to understand the start up sequence

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Trying to understand the start up sequence

Post by owenisred »

Ok I read a cube scripting tutorial saying
if config.cfg doesn't exist:
only then do we execute data/defaults.cfg
this will - at regular quit of engine -
be written into config.cfg

if config.cfg exists:
execute it

execute data/menus.cfg

if autoexec.cfg exists:
execute it
If you run the RPG batch file, I assume it searches for config_rpg.cfg and not simply config.cfg?
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
User avatar
RonnieNeeley
Member
Member
Posts: 203
Joined: May 5th, 2010, 6:35 pm
Name: Ronnie Neeley
Location: Illinois
Contact:

Re: Trying to understand the start up sequence

Post by RonnieNeeley »

Wow, no one has replied to this yet? I guess that shows the knowledge and/or consistency of our support team..

I'm not much of the coding guy, but I believe simply "config.cfg" refers to maps, because every game mode has a suffix of the game mode (so config_fps.cfg, etc.). (Even though I'm pretty sure you know that).

I can't assure my statement is 100% valid, but I hope I've helped.
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Trying to understand the start up sequence

Post by owenisred »

Confused
"config.cfg" refers to maps
config.cfg doesn't exist does it?

Sorry I'm quite slow today lol,

Thanks,
Owen.
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Trying to understand the start up sequence

Post by Hirato »

examine src/engine/main.cpp
I've quoted the relevant bits from it
(note, this is the current SVN version and there has been significant alterations since 2.5.0)

Code: Select all

    if(!execfile("data/stdlib.cfg", false)) fatal("cannot find data files (you are running from the wrong folder, try .bat file in the main folder)");   // this is the first file we load.
    if(!execfile("data/font.cfg", false)) fatal("cannot find font definitions");

    execfile("data/keymap.cfg");
    execfile("data/stdedit.cfg");
    defformatstring(confname)("data/%s/std.cfg", game::gameident());
    execfile(confname, false);

    formatstring(confname)("data/%s/sounds.cfg", game::gameident());
    if(!execfile(confname, false))
	    execfile("data/sounds.cfg");

    execfile("data/brush.cfg");
    execfile("mybrushes.cfg", false);

    #ifdef NEWGUI
    execfile("data/newui.cfg");
    #else
    execfile("data/menus.cfg");
    formatstring(confname)("data/%s/menus.cfg", game::gameident());
    execfile(confname, false);
    #endif

    if(game::savedservers()) execfile(game::savedservers(), false);

    formatstring(confname)("config_%s.cfg", game::gameident());
    if(!execfile(confname, false))
	    setdefaults();

    execfile(game::autoexec(), false);

    formatstring(confname)("data/%s/game.cfg", game::gameident());
    execfile(confname, false);

    if(execfile("once.cfg", false)) remove(findfile("once.cfg", "rb"));
This is not a url, clicking it is pointless
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Trying to understand the start up sequence

Post by owenisred »

Hirato you come to my aid once again :)

Thanks, thats fantastic, ill get it from there :)
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
User avatar
klimyriad
Support Team
Support Team
Posts: 969
Joined: December 23rd, 2009, 1:43 pm
Name: liam
Contact:

Re: Trying to understand the start up sequence

Post by klimyriad »

RonnieNeeley wrote:Wow, no one has replied to this yet? I guess that shows the knowledge and/or consistency of our support team..

I'm not much of the coding guy, but I believe simply "config.cfg" refers to maps, because every game mode has a suffix of the game mode (so config_fps.cfg, etc.). (Even though I'm pretty sure you know that).

I can't assure my statement is 100% valid, but I hope I've helped.

Excuse me The support team is volunteer only and we can not answer every question we see. (And it would help if Leo, Arc or any other member of the support team was on).
Firstspace the attack Progress. Image
Maps= Image finishing the town of hisal map.
Models and textures Image Just started finding these.
Menus, script's and other stuff. Image
owenisred
Member
Member
Posts: 452
Joined: August 9th, 2010, 9:33 am
Name: Owen

Re: Trying to understand the start up sequence

Post by owenisred »

Klimyriad - your work is appreciated man - its is admittedly frustrating when it takes a while to get information, but thats no fault of yours or the rest of the support team, you are doing sterling work - keep it up.
I'm taking modelling requests again - any models you want created,skinned or animated (or all 3) leave a post here:

viewtopic.php?f=9&t=2704&start=0

My tutorial site - still under construction, but lots of good stuff there:

http://pasandbox.webs.com/
User avatar
klimyriad
Support Team
Support Team
Posts: 969
Joined: December 23rd, 2009, 1:43 pm
Name: liam
Contact:

Re: Trying to understand the start up sequence

Post by klimyriad »

yea i know but i just saying.
Firstspace the attack Progress. Image
Maps= Image finishing the town of hisal map.
Models and textures Image Just started finding these.
Menus, script's and other stuff. Image
Locked