adding to an x file

Have modding questions or discovered something new? Post here.
User avatar
{EMC}Methuselah96
Programmer
Programmer
Posts: 723
Joined: Sat May 08, 2010 3:22 pm
Location: Philadelphia, PA, United States
Contact:

Re: adding to an x file

Post by {EMC}Methuselah96 »

just look at another map
ill post how to do it eventually
but im kinda doing homework right now
but whenever u trying to do something just look at another map
um i plan to make 1 map editing tutorial every week
Image
kingdavid337
Grunt
Grunt
Posts: 13
Joined: Sun Oct 03, 2010 5:13 pm

Re: adding to an x file

Post by kingdavid337 »

Yeah I did (8 train rush) I search for 9999 pastic and electricity but it not come up and how I change flashlight into garden lamp
I WILL RAPE YOU!!!!!!!!!!
kingdavid337
Grunt
Grunt
Posts: 13
Joined: Sun Oct 03, 2010 5:13 pm

Re: adding to an x file

Post by kingdavid337 »

{EMC}Storm wrote:replace stuff. ex: change chewtoy to dogbowl, a 9volt battery to a Ps2, a tree to a bush. 8 train is the best map to edit since theres a lot of trees so u can replace it into anything
How u do that
I WILL RAPE YOU!!!!!!!!!!
User avatar
{EMC}Methuselah96
Programmer
Programmer
Posts: 723
Joined: Sat May 08, 2010 3:22 pm
Location: Philadelphia, PA, United States
Contact:

Re: adding to an x file

Post by {EMC}Methuselah96 »

ok after uve extracted it go in game.cfg (use Notepad it's the easiest)

this is a simplified version of the file

//////////////////////////////////////////////////////////////////////////
//
// Pandemic Studios
//
// Code-Generated Configuration File
//

RuleSet("protect");

WorldInfo(){}

Environment(){}

DefineTeams(){

CreateTeam("Team8", 7)
{
Color(0, 0, 0);

Relations(){}

DefaultClient(0);
AvailablePlay(1);
HasStats(1);
RequireAI(1);
Side("army");
SideFixed(0);
KnockedOut(0);

Objectives(){}

StartRegion(238);
StartPoint(0.070317, 0.370075);
StartYaw(0.000000);
Personality("None");
PainCurrentCluster(0);
UniqueScriptId(0);

Storage()
{
Add("Plastic", 2000);
Add("Electricity", 800);

}


Change the yellow numbers to whatever u want and u have to do that for all 8 teams.

--------------------------------------------------------------------------------------

Now for changing the resources go in objects.cfg and find

CreateObject("resource.flashlight", 60)
{
MapObj()
{
HitPoints(0.000000);

Position()
{
Pos(364.000000, -27.258656, 236.000000);
Right(0.000000, 0.000000, -1.000000);
Up(0.000000, 1.000000, 0.000000);
Front(1.000000, 0.000000, 0.000000);
}

Zip();
}
}

repeated about 8 times and change the words in yellow to resource.lamp and thats about it

if u have any other questions ask
Image
kingdavid337
Grunt
Grunt
Posts: 13
Joined: Sun Oct 03, 2010 5:13 pm

Re: adding to an x file

Post by kingdavid337 »

How do I make the resources just say I want an extra resource next to Pail. how I get coords?

Ty for EVERYTHING
I WILL RAPE YOU!!!!!!!!!!
User avatar
{EMC}Methuselah96
Programmer
Programmer
Posts: 723
Joined: Sat May 08, 2010 3:22 pm
Location: Philadelphia, PA, United States
Contact:

Re: adding to an x file

Post by {EMC}Methuselah96 »

um the way i always did it is just trial and error
but if u wait a day ill give u an easier way
Image
kingdavid337
Grunt
Grunt
Posts: 13
Joined: Sun Oct 03, 2010 5:13 pm

Re: adding to an x file

Post by kingdavid337 »

Ok
I WILL RAPE YOU!!!!!!!!!!
kingdavid337
Grunt
Grunt
Posts: 13
Joined: Sun Oct 03, 2010 5:13 pm

Re: adding to an x file

Post by kingdavid337 »

?
I WILL RAPE YOU!!!!!!!!!!
{W.W}Ranger
Map Maker
Map Maker
Posts: 228
Joined: Mon Jul 26, 2010 5:49 pm
Location: The good o'Earth.

Re: adding to an x file

Post by {W.W}Ranger »

kingdavid337 wrote:?
I'm guessing you guess a spot in the map, then see if its in the right spot then repeat by doing this several times for a symmetrical item map. You gotta go back and fourth to see what the results look like.
Some items that you may want to place is a tree.
======Pattern Guide=======
Top left:.100000 .100000,
Bottom Right:.900000 .900000,
Bottom Left: .100000 .900000,
Top Right:.900000 .100000
X, axis goes first Y, axis goes 2nd..... as you can see you get a tree in all 4 corners.
To make patterns you first gotta change one by one.
CreateObject (Blah blah)
(Position: Changed part >>>> .500000 .100000 << changed part) which is
>>>.100000<<<< = Spaces in between the map and the border line.
------------------X <<<< Item
------------------l
-----------------------------
l----------------- l
------------------
Repeat changing some of the items to only A CERTAIN NUMBER in between .000000-.999999. It must be repeating the same pattern over and over again if you want a fair map.
That is how you do the item placement.
the map will start to look like this...
Key: T= Trees l& - _ = x and y axis.
TLLLTLLLT
LLTLlLLT
----T----- It will have a symmetrical pattern that is presentable.
LLTLlLLT
TLLLlLLLT
kingdavid337
Grunt
Grunt
Posts: 13
Joined: Sun Oct 03, 2010 5:13 pm

Re: adding to an x file

Post by kingdavid337 »

thank you

how i put icon of lets say machine gunner to thick in barracks.
I WILL RAPE YOU!!!!!!!!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests