Author Topic: Making A Map  (Read 4279 times)

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« on: October 12, 2005, 03:39:44 PM »
I've looked all over the wiki and can't find a complete guide to making a map (everything, not just the thing you play on, so i think that includes dlls). All the different pages get very confusing. Could someone write up a complete guide?

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #1 on: October 13, 2005, 03:15:16 PM »
Ok, I've got the map editor and installed everything on the compiler setup page, but now what do I do? How do you get my program into a dll?

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #2 on: October 13, 2005, 03:59:10 PM »
okay I am assuming you have configured everything the way that was shown.


Load CodeBlocks and load a new project.  Now click on "sources" its about half way down on the left of the screen. Then click on Main.cpp  You should now be looking at a script.  

Now you need to make some changes:
number one.   do you see were it says  
Code: [Select]
 char MapName[]  	= "on4_01.map"; 
you need to change the map name to your map file name I suggest you make a new map that is covered by one map tile

now you need to look at this code below and decide if you want to make a multiplayer game or a singleplayer colony game
Code: [Select]
SDescBlock DescBlock	= { MultiLastOneStanding, 4, 12, 0 };
its right now set up to do a multiplayer game if you want to do a colony game  take the MultiLastOneStanding out and put in Colony. Now on to tech tree
Code: [Select]
char TechtreeName[]  = "MULTITEK.TXT"; 
you see were it says MULTITEK.TXT now you could leave it like that but you don't get to pick if your Eden or plymoth okay so lets replace that with EDENTEK.TXT

Now there is one more major thing you need to do. Look for this code in the script

Code: [Select]
 CreateLastOneStandingVictoryCondition(); 

you need to change this or you will not be able to do anything so lets change this to
Code: [Select]
 Trigger population = CreateResourceTrigger(1, 1, resColonists, 400, 0, cmpGreaterEqual, "NoResponseToTrigger");

CreateVictoryCondition(1, 0, population, "Have 400 Colonists.");


Now you have what I would call a testing colony game. You will be able to load this in the game and look at what you have done.
Oh you need to do one more thing you need to click compile at the top of the screen Now exit Codeblocks and go to the folder were you made this script you should see a file labled OP2Script.dll rename it too Ctt.dll you can name it anything but if you are making a test colony game like I have shown you need to to have the first letter in the name be a C  Now cut this file and move it to the main folder in OP2 and if everything was done right you will be able to see and load it from the colony game part in Outpost 2

I hope this will help you. I am still learning how to make colony missions and this is what I use to test code

Spirit
« Last Edit: October 13, 2005, 04:01:36 PM by spirit1flyer »
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #3 on: October 13, 2005, 04:15:37 PM »
Saving a map doesn't create a file for me... hmm.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #4 on: October 13, 2005, 04:18:49 PM »
hmm were did you make it?
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #5 on: October 13, 2005, 04:28:25 PM »
I put it in a mydocuments folder.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #6 on: October 13, 2005, 04:35:54 PM »
if you don't have a map file there then you are having problems with the mapper
I suggest you try making one and saving it to the OP2 folder
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #7 on: October 13, 2005, 04:40:17 PM »
No difference

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #8 on: October 13, 2005, 04:44:35 PM »
okay see if you can use this map
« Last Edit: October 13, 2005, 05:04:12 PM by spirit1flyer »
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #9 on: October 13, 2005, 04:49:25 PM »
Hacker got me a new dll that fixed the problem, thanks anyway.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #10 on: October 13, 2005, 05:03:58 PM »
is making and coding the map under control then for you?
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #11 on: October 13, 2005, 05:07:50 PM »
I can make the map, but I can't get codeblocks to make dlls.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #12 on: October 13, 2005, 05:08:40 PM »
did you do the compile step?
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #13 on: October 13, 2005, 05:25:29 PM »
I tried to follow the compiler setup to the last word, but I couldn't. MSVC++ doesn't like Me, so I couldn't install it. But I downloaded the files Hacker posted halfway down this topic: http://forum.outpostuniverse.net/index.php?showtopic=2038, and followed the dirctions from there.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #14 on: October 13, 2005, 05:32:58 PM »
I don't see what the problem is? did you not set the compiler in codeblocks? or something?
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #15 on: October 13, 2005, 05:38:09 PM »
I did everything it said to do.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #16 on: October 13, 2005, 05:40:22 PM »
have you tried doing the compiler by going into codeblocks and going up to were it says compile?
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Making A Map
« Reply #17 on: October 13, 2005, 05:44:22 PM »
Yes.

Offline spirit1flyer

  • Hero Member
  • *****
  • Posts: 621
Making A Map
« Reply #18 on: October 13, 2005, 05:50:27 PM »
and it did not work?

if so I can't really help you there I don't know that much about codeblocks or compilers ask Hacker, Eddy or any of the other big names here  :P  
"Until you stalk and overrun You can't devour anyone"


Loyal Xfir supporter