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.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
Saurbraten Cube 2 question
Saurbraten Cube 2 question
I have been trying, instead of coding my own guns anew, simply heavily editing saurbraten and replacing its guns and models with mine.
Is this possible? I mean my plan to begin with is to dramatically increase the kickback of a particular gun, along with its damage. I dont know how this would effect me playing online: whether I'd have awesome beefed out guns, I couldnt play online, or that I simply couldnt edit the game at all.
Anyway I had a look in game.h and I found this line:
static const struct guninfo { short sound, attackdelay, damage, projspeed, part, kickamount, range; const char *name, *file; } guns[NUMGUNS] =
{
{ S_PUNCH1, 250, 50, 0, 0, 0, 14, "fist", "fist" },
{ S_SG, 1400, 10, 0, 0, 20, 1024, "shotgun", "shotg" }, // *SGRAYS
{ S_CG, 100, 30, 0, 0, 7, 1024, "chaingun", "chaing"},
{ S_RLFIRE, 800, 120, 80, 0, 10, 1024, "rocketlauncher", "rocket"},
{ S_RIFLE, 1500, 100, 0, 0, 30, 2048, "rifle", "rifle" },
{ S_FLAUNCH, 500, 75, 80, 0, 10, 1024, "grenadelauncher", "gl" },
{ S_PISTOL, 500, 25, 0, 0, 9000, 1024, "pistol", "pistol" },
{ S_FLAUNCH, 200, 20, 50, PART_FIREBALL1, 1, 1024, "fireball", NULL },
{ S_ICEBALL, 200, 40, 30, PART_FIREBALL2, 1, 1024, "iceball", NULL },
{ S_SLIMEBALL, 200, 30, 160, PART_FIREBALL3, 1, 1024, "slimeball", NULL },
{ S_PIGR1, 250, 50, 0, 0, 1, 12, "bite", NULL },
{ -1, 0, 120, 0, 0, 0, 0, "barrel", NULL }
};
So I tried to change one of the values in the list (i.e. the 9000 part for the pistol) However apparently this file has no effect on gameplay at all... When I saved this and entered the game NOTHING changed.
I got confused - can anyone help?
Thanks a lot,
Owen.
Is this possible? I mean my plan to begin with is to dramatically increase the kickback of a particular gun, along with its damage. I dont know how this would effect me playing online: whether I'd have awesome beefed out guns, I couldnt play online, or that I simply couldnt edit the game at all.
Anyway I had a look in game.h and I found this line:
static const struct guninfo { short sound, attackdelay, damage, projspeed, part, kickamount, range; const char *name, *file; } guns[NUMGUNS] =
{
{ S_PUNCH1, 250, 50, 0, 0, 0, 14, "fist", "fist" },
{ S_SG, 1400, 10, 0, 0, 20, 1024, "shotgun", "shotg" }, // *SGRAYS
{ S_CG, 100, 30, 0, 0, 7, 1024, "chaingun", "chaing"},
{ S_RLFIRE, 800, 120, 80, 0, 10, 1024, "rocketlauncher", "rocket"},
{ S_RIFLE, 1500, 100, 0, 0, 30, 2048, "rifle", "rifle" },
{ S_FLAUNCH, 500, 75, 80, 0, 10, 1024, "grenadelauncher", "gl" },
{ S_PISTOL, 500, 25, 0, 0, 9000, 1024, "pistol", "pistol" },
{ S_FLAUNCH, 200, 20, 50, PART_FIREBALL1, 1, 1024, "fireball", NULL },
{ S_ICEBALL, 200, 40, 30, PART_FIREBALL2, 1, 1024, "iceball", NULL },
{ S_SLIMEBALL, 200, 30, 160, PART_FIREBALL3, 1, 1024, "slimeball", NULL },
{ S_PIGR1, 250, 50, 0, 0, 1, 12, "bite", NULL },
{ -1, 0, 120, 0, 0, 0, 0, "barrel", NULL }
};
So I tried to change one of the values in the list (i.e. the 9000 part for the pistol) However apparently this file has no effect on gameplay at all... When I saved this and entered the game NOTHING changed.
I got confused - can anyone help?
Thanks a lot,
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/
viewtopic.php?f=9&t=2704&start=0
My tutorial site - still under construction, but lots of good stuff there:
http://pasandbox.webs.com/
- Leo_V117
- Support Team

- Posts: 1640
- Joined: February 16th, 2010, 8:00 pm
- Name: Leo
- IRC Username: Leo_V117
- Location: That one place...
- Contact:
Re: Saurbraten Cube 2 question
Try compiling the cbp file in src/vcpp. You need Code::Blocks.
Game Projects
Sandbox Tools
-
chocolatepie33
- Support Team

- Posts: 2458
- Joined: April 27th, 2010, 5:31 pm
- IRC Username: CP
Re: Saurbraten Cube 2 question
couldn't you use the command instead of putting it straight out like that?
Also, the guys over at Sauer would probably know better than we would.
Code: Select all
Also, the guys over at Sauer would probably know better than we would.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Re: Saurbraten Cube 2 question
AHHH it would need compiling - regardless of how much I edited the .h file - yes?
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/
viewtopic.php?f=9&t=2704&start=0
My tutorial site - still under construction, but lots of good stuff there:
http://pasandbox.webs.com/
Re: Saurbraten Cube 2 question
YES! I love life
thanks Leo!
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/
viewtopic.php?f=9&t=2704&start=0
My tutorial site - still under construction, but lots of good stuff there:
http://pasandbox.webs.com/
-
chocolatepie33
- Support Team

- Posts: 2458
- Joined: April 27th, 2010, 5:31 pm
- IRC Username: CP
Re: Saurbraten Cube 2 question
I'm gonna guess that it worked for you...
Can you try something? Look what's on here: viewtopic.php?f=15&t=1203&start=0
It's about playermodel changing. If you change part of a file (see the 2nd page), you can change the number of playermodels... but maybe it works only if you compile it. I'd like to see if that's true, please...
Can you try something? Look what's on here: viewtopic.php?f=15&t=1203&start=0
It's about playermodel changing. If you change part of a file (see the 2nd page), you can change the number of playermodels... but maybe it works only if you compile it. I'd like to see if that's true, please...
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
- Leo_V117
- Support Team

- Posts: 1640
- Joined: February 16th, 2010, 8:00 pm
- Name: Leo
- IRC Username: Leo_V117
- Location: That one place...
- Contact:
Re: Saurbraten Cube 2 question
Any file that ends with ".h" or ".cpp" would require you to compile the main source file if you edit them. In theory, you wouldnt even need to release the "src" folder as part of the engine as the modes are compiled and connected to a ".exe" file, executed through a batch. Providing you compile the project, it should work fine.
Having trouble? Not Anymore!
- PAS Support Team
- Leo
Having trouble? Not Anymore!
- PAS Support Team
- Leo
Game Projects
Sandbox Tools
Re: Saurbraten Cube 2 question
Yea I know - thanks a lot dude 
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/
viewtopic.php?f=9&t=2704&start=0
My tutorial site - still under construction, but lots of good stuff there:
http://pasandbox.webs.com/
- Leo_V117
- Support Team

- Posts: 1640
- Joined: February 16th, 2010, 8:00 pm
- Name: Leo
- IRC Username: Leo_V117
- Location: That one place...
- Contact:
-
chocolatepie33
- Support Team

- Posts: 2458
- Joined: April 27th, 2010, 5:31 pm
- IRC Username: CP
Re: Saurbraten Cube 2 question
It's your choice, you have the powers. I'd say so.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
