Outpost Universe Forums
Projects & Development => Outpost 2 Programming & Development => Topic started by: thojoh370 on May 08, 2006, 02:16:01 PM
-
Hey how do we add our own maps into OP2 and how do we play them?
I WOULD LIKE ANSWER!
-
You should really ask this question in the programming forum, under mapping.
-
And ask nicely while you're at it. I wouldn't answer somebody screaming "I WOULD LIKE ANSWER!" ... <_<
-
Yes, please. Screaming that you would like an answer is not going to make friends around here very fast.
Topic moved.
---
Anyway, regarding creation of new maps.
OP2 has two components for a map. The .dll file, which controls unit, building, disaster placement, AI, victory conditions, etc. and the .map file, which controls only the level terrain.
It would probably be most logical to make a new .map file first before you start writing the .dll, unless you want to use one of the pre existing game maps.
The .map file can be created in OP2Mapper, (link) (http://wiki.outpostuniverse.net/Mapper)
It controls all the initial terrain and the attributes governing whether items can move onto / be built on different tiles on the map.
Next, you need a .dll file. Dll's are code written and compiled in Microsoft C++ (yes, you're forced to use MS C++, for technical reasons I won't go into here).
If you don't have MS C++, you can download a package of tools that includes the freeware version of their compiler here. (http://wiki.outpostuniverse.net/Compiler_Setup)
If you have programming background writing a DLL should be very straightforward. If not, you might still be able to make some sense out of what is going on. There are always people around who can help you and, if need be, you might be able to work with someone who can volunteer their time to write the DLL for you.
Also in the works is Eddy-B's scripter which will allow you to create missions with very little coding required. See the programming section to learn about that.
-
Yes, please. Screaming that you would like an answer is not going to make friends around here very fast.
Topic moved.
---
Anyway, regarding creation of new maps.
OP2 has two components for a map. The .dll file, which controls unit, building, disaster placement, AI, victory conditions, etc. and the .map file, which controls only the level terrain.
It would probably be most logical to make a new .map file first before you start writing the .dll, unless you want to use one of the pre existing game maps.
The .map file can be created in OP2Mapper, (link) (http://wiki.outpostuniverse.net/Mapper)
It controls all the initial terrain and the attributes governing whether items can move onto / be built on different tiles on the map.
Next, you need a .dll file. Dll's are code written and compiled in Microsoft C++ (yes, you're forced to use MS C++, for technical reasons I won't go into here).
If you don't have MS C++, you can download a package of tools that includes the freeware version of their compiler here. (http://wiki.outpostuniverse.net/Compiler_Setup)
If you have programming background writing a DLL should be very straightforward. If not, you might still be able to make some sense out of what is going on. There are always people around who can help you and, if need be, you might be able to work with someone who can volunteer their time to write the DLL for you.
Also in the works is Eddy-B's scripter which will allow you to create missions with very little coding required. See the programming section to learn about that.
What DLL file? :huh: I've only created a map in the OP2Mapper, nothing more.
Tell me more about that. And please, I will stop screaming if you stop requesting this thread under Programming........ :angry:
-
precisely, the dll files are as programmation, it's the files who say where are the buildings, the mining bullets, etc
I can't help you to modify these files, I have never succeed (http://img451.imageshack.us/img451/2606/475sd.gif) (http://imageshack.us)
-
What DLL file? :huh: I've only created a map in the OP2Mapper, nothing more.
Tell me more about that. And please, I will stop screaming if you stop requesting this thread under Programming........ :angry:
As Hacker said, OP2 missions are made up of the .map file and a separate .dll file, which you need to code yourself (although there are templates for you to use). As far as I can tell, this is because many OP2 missions use the same map files.
-
Yes, each mission has a unique DLL file but the same map file can be used by any number of DLLs.
The DLL file also tells the game what map file to use.