Author Topic: Some Questions  (Read 1803 times)

Offline Stormy

  • Hero Member
  • *****
  • Posts: 678
    • http://www.op3game.net
Some Questions
« on: June 21, 2005, 09:57:38 PM »
Hi,
how do I open the files in the sdk?
can I get a list of 'steps' for making a map-
including a list of the programs invloved..
And.. any ideas for a map anyone would like me to make  :D

any help would be greatly appreciated...  ;)
Stormy
`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·
3D artist in Blender, MS3D, and Terragen.
Trying to get good with Scene composition and lighting.

Offline Leviathan

  • Hero Member
  • *****
  • Posts: 4055
Some Questions
« Reply #1 on: June 22, 2005, 04:33:36 AM »
In MSVC+ goto file > Open Workspace, go into the Multiplayer Hoovile folder and select OP2Script. It will load all the files of that mission.

Take a look at Main.cpp and BaseData.h.

Once you taken a look around, copy that whole folder then rename it to Stormys Map or whatevea.

Close the current workspace in MSVC+ and open the one in the new folder.

In Main.cpp you will find at the top this:
Code: [Select]
char MapName[]  	= "mapname.map";	
Write the name of your map you saved in the map editor here.

In Main.cpp scroll down untill you find this:
Code: [Select]
	CreateLastOneStandingVictoryCondition();
Change it so it looks like this (with two / in front), this makes the code not part of the dll, it coments it out (it goes green):
Code: [Select]
	//CreateLastOneStandingVictoryCondition();

Make sure your .map is in the OP2 folder.

In MSVC+ goto Build > Build OP2Script.dll. At the bottom it will say compiling, once done it will say
OP2Script.dll - 0 error(s), 0 warning(s)
Look in the ReleaseMinSize folder inside the DLL folder. There will be a file called OP2Script.dll here. Copy it to your OP2 folder.

Run OP2, press the D key (brings up a grey menu), press the R key (brings up the run script menu). Select OP2Script.dll from the menu, press OK. All the bases, units, tubes etc in the BaseData file will be loaded. Hoovile has four bases so four will load.

Play around with the cords in BaseData to make your base's how you want. The whole bases are moved around one cord, these cords are set here:
Code: [Select]
struct StartLocation startLocation[] = 

Programs Invloved?... Map Editor and MSVC+