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.

Adding a playermodel to the list?

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.
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: Adding a playermodel to the list?

Post by Leo_V117 »

That looks like the correct file. When youre in 3rd person mode press 9 and it changes your player model to one of those above.

The line here:

Code: Select all

static const playermodelinfo playermodels[8] =
Must be the amount of player models for the game. I Think I should set it to 1. so it looks more like this:

Code: Select all

static const playermodelinfo playermodels[1] =
This part is the list of models:

Code: Select all

{ "rc", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc", "rc_blue", "rc_red", true, true }, 
So I should set them to something like this:

Code: Select all

{ "regen/characters/main", NULL, NULL, NULL, { NULL, NULL, NULL }, "regen/characters/main", true, true }, 
Then remove the rest... For campaign the playermodel is set to the main character. but for multiplayer modes the main character is none existent, The player goes into the settings menu and selects Multiplayer, they then get options such as Nickname, Model, Armor, Colour etc.

Seems like you found it for us chocolatepie33. I'll test it out later.
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Adding a playermodel to the list?

Post by arcones »

Well the files make's sense, but the AI won't work until the next release at the earliest. There's still work to be done :|
Image
Want a user bar like this one? PM Leo!
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Adding a playermodel to the list?

Post by chocolatepie33 »

Guys, I now know a bit of C++ and can say one thing: the static const playermodelinfo playermodels[8] = is an array, which is a type of data to store multiple variables. That may make the number of playermodels work.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Kerberos
Member
Member
Posts: 9
Joined: September 12th, 2010, 4:44 pm
Name: James

Re: Adding a playermodel to the list?

Post by Kerberos »

chocolatepie33 wrote:Sorry I'm late, happy birthday Gr1m. I was browsing through the older posts in the sandbox chat area, and one of mike's posts said to look in the src/fpsgame/render.cpp file or something like that. I've got it up now, look at this:

static const playermodelinfo playermodels[8] =
{
{ "rc", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc", "rc_blue", "rc_red", true, true },
{ "rc/blue", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc_blue", "rc_blue", "rc_red", true, true },
{ "rc/red", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc_red", "rc_blue", "rc_red", true, true },
{ "rc/pink", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc_pink", "rc_blue", "rc_red", true, true },
{ "ogre", "ogre/blue", "ogre/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "ogre", "ogre", "ogre", false, true },
{ "ogre/blue", "ogre/blue", "ogre/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "ogre", "ogre", "ogre", false, true },
{ "ogre/red", "ogre/blue", "ogre/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "ogre", "ogre", "ogre", false, true },
{ "uh/chars/man", "uh/chars/man", "uh/chars/man", NULL, NULL, NULL, { NULL, NULL, NULL }, "uh/chars/man", "uh/chars/man", "uh/chars/man", false, true }
};

I'm just staring at this and going, "WHAT THE????"

EDIT: There's also a monster.cpp file in there, plus an AI file, i think... Yeah... Still Lost... :( :?:

( NOTE I HAVE NO CLASS TRAINING IN THIS AND I AM JUST TAKING A STAB AT IT )

static const playermodelinfo playermodels[8] ~ Means number of models allowed change the 8 to something like 9999 for a limit of 9999 models ( 0% prove )

"rc", "rc/blue", "rc/red", NULL, NULL, NULL, { NULL, NULL, NULL }, "rc", "rc_blue", "rc_red", true, true },
~ looks like first, second and 3rd "" are the location of models or something the null i have no idea what its for but the 2nd list of the same name must be the name of the model or something and the true true is for something the program to trigger maybe swimming and jumping ? ~
Locked