Author Topic: ALPHA-RELEASE: MMap (Machines Map anchor program)  (Read 7487 times)

0 Members and 1 Guest are viewing this topic.

Offline f

  • Knight
  • *
  • Posts: 95
  • Karma: 11
    • View Profile
ALPHA-RELEASE: MMap (Machines Map anchor program)
« on: May 08, 2009, 06:39:11 pm »
Basically, a map editor I am was developing.

... attaching some pics.


... here you can see how the editor looks so far and what unit types are supported in the pre-alpha version.


above pic:
Featuring object placing and deleting, choosing an object direction and dumping stuff to a file. Notice the text at the top, object info appears when your mouse cursor is above an object.

FAQ (frequently asked questions)

What does it do?
With the program you can generate unit coordinates in any map point you want (even areas that units can not move in) and place objects within these coordinates, so basically, it's a map editor.

The application itself creates units within specified coordinates and dumps the output to a file for you to paste in a specified map setting file (map.scn)

How do I use it?
- Press the [~] key to open up the unit browser and pick a unit you want.
- Press the [TAB] key to close the unit browser.
- Use middle mouse button to change the view position.
- Use [1] and [2] keys to change the brush mode.
- Left mouse button rapid-places units, right mouse button area-erases them. (brush mode 1)
- Left mouse button places unit, right mouse button erases unit. (brush mode 2)
- Use arrow keys to change the angle of the unit, construction angles seem not to work.

When you're done setting up units use space after placing units to export the unit data to output.txt in the same directory as the main executable (MMap.exe) is. Then paste the unit data to a race color you want (for example: RACE RED) m_desert.scn from your mach1.met and remake mach1.met.

Why only m_desert.scn?
Because it is my fav. map in Machines and well just didn't had enough motivation to add more.

Why the file size is that big if it's that simple?
Because I feel like including the bigass BMP of the map inside the executable.

Where do I get it?
Here (rapidshare): http://rapidshare.com/files/297894656/MMapALPHA.rar.html (might expire soon!)
Here (speedyshare): http://www.speedyshare.com/694268760.html
Here (megaupload): http://www.megaupload.com/?d=SVCH0UVM

Footage showing how does it work (ignore music):
<a href="http://www.youtube.com/v/4zxisZj4gHA" target="_blank" class="new_win">http://www.youtube.com/v/4zxisZj4gHA</a>
« Last Edit: October 25, 2009, 07:42:00 pm by Foley »
Quote
no

Offline X-Lord

  • Eradicator
  • *
  • Posts: 852
  • Karma: 40
  • Gender: Male
  • Modder
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #1 on: May 08, 2009, 06:45:30 pm »
YES, we DO ! :smilydude:

Offline asdam1

  • I'm glad to see you read these. :-)
  • Bee Bomber
  • *
  • Posts: 427
  • Karma: 2
  • Gender: Male
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #2 on: May 08, 2009, 06:56:18 pm »
YESSSSSSSSSS I WANT IT LO.L
I WANT IT
Hey, I bet I'd make a good tester too! I could test it. THOROUGHLY. FOR HOURS!!!
« Last Edit: May 08, 2009, 06:58:13 pm by asdam1 »
Have you checked out any of my mods?
-If not, it's probably because I haven't uploaded any. :wink:

Offline f

  • Knight
  • *
  • Posts: 95
  • Karma: 11
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #3 on: May 09, 2009, 05:46:37 pm »
added a small footage
Quote
no

Offline rubarkan

  • Reaper
  • *
  • Posts: 8
  • Karma: 0
  • Gender: Male
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #4 on: May 21, 2009, 05:54:29 am »
This is great! :D
Hope u get the time to finish this soon :)
He's toast!

Offline Jhack89

  • Reaper
  • *
  • Posts: 14
  • Karma: 2
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #5 on: June 08, 2009, 06:38:20 am »
Whoo, that's fabulous! Of course we want it! ^^
What language are you programming this with? I'd be happy to give you a hand if you need ;)
Eheh, I think we're all looking forward to your first release :))

Offline X-Lord

  • Eradicator
  • *
  • Posts: 852
  • Karma: 40
  • Gender: Male
  • Modder
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #6 on: June 08, 2009, 10:53:34 am »
I was talking to Foley and he said he used C++ :)

Offline Jhack89

  • Reaper
  • *
  • Posts: 14
  • Karma: 2
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #7 on: June 08, 2009, 08:09:33 pm »
Oh, that's great, I love C++ ;D

Has someone found where the ".x" models of the maps and units are?
If so, thanks to the work of Foley, knowing how the coordinates systems work, it should be quite easy loading the models and create a "3D Units Placement system"... i.e. a 3D map editor.
It would be enough to use a 3D Engine like Irrlitch, load them, and then do some simple conversions :))
I do love the fact in Irrlitch with a simple function call you can know the exact coordinates of the point clicked by the mouse on a surface :DD

Also the packing/unpacking of the metafile "mach1" can be easily automated, as well as the "code-injection" in the .scn files.
I know it may sound rough, but I suggest you to make use of a simple "system("Metaex -mo Newmach1.met -l mach1.met.txt"); system("copy ...."); etc. to start with, ... that together with a random access to the .scn file adding everything you created after the "CONSTRUCTIONS"/"MACHINES" line of the respective race, would save us the tough manual "copy, paste & execute" job xD
I think by now if I were you I would have already got crazy doing it myself time after time while testing MMap ^.^

Later on it would be a matter of making it user friendly adding some GUI, that is maybe the toughest job, ahah xD
Anyway also in this case most of good 3D Engines, like Irrlitch, should give us great help making a good front-end for the editor (although usually arrived at that developing stage I get a little bit lazy since it's a kind of boring linking all the features you have coded with the user interface ^^;;).

I'd create a sourceforge page for this, and release it under some Opensource Non Commercial Licence that grants the attribution of the work.

Actually before to find this post I was thinking to make the editor myself, but I'm not going to spend time on something someone else is already working if it is not to help with the already existing project :P
It's a waste two people work on the same thing alone :))

Hope it helps,
Jacopo

Offline X-Lord

  • Eradicator
  • *
  • Posts: 852
  • Karma: 40
  • Gender: Male
  • Modder
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #8 on: June 09, 2009, 01:39:35 pm »
For me C++ is a very user-friendly language and so, I like it too :P

Contact with Foley, he is really sociable and I'm sure he wish to gain some help ;)

Offline Jhack89

  • Reaper
  • *
  • Posts: 14
  • Karma: 2
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #9 on: June 09, 2009, 09:51:07 pm »
Happy you like it too!
Thanks for your suggestion X-Lord, I'll try emailing him ^^

Offline Jhack89

  • Reaper
  • *
  • Posts: 14
  • Karma: 2
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #10 on: June 13, 2009, 11:02:31 am »
I've talked with Foley, and he told me the 3d models of maps and everything are in the "models.bin" file.
My understanding of the structure of Machines is surely little compared to other members, but I've kept on investigating a little, and that's as far as I arrived:

Shared libraries:
CMS16.DLL, cms32_95.dll & CMS32_NT.DLL are the Securom shared libraries.
SMACKW32.DLL -> the shared library to read the videos in the ./flics folder, that we can modify with the RAD tools.
macunin.dll -> maybe some kind of library to access the Windows Register and the locale (it's surely been made by Machines programmers)
mmxww32d.dll -> spme kind of library related to mmx graphics compiled with the Watcom compiler xD
MSS32.DLL -> "Miles Sound System" shared library... quite self-explanatory
machstrg.dll -> "Machines Strings", some of the writings you can find in-game.

Other files:
mach1.met -> most of the "notepad editable" data of the game, merged in a metafile (that we can unmerge and re-merge with metaex)
vidcard.cap -> sets the amount of memory the game reserves for the video and the textures (to be increased if we create bigger textures)
machines.exe -> we know there are 2 command lines options, "-lobby" (the Internet version of Machines) and "-?" (that anyway now is disabled).
models.bin -> all the 3d models of the game, merged someway.

About the data in "mach1.met":
"*.rsi" files describe the available technologies for each player
"*.scn" files describe the players, the game type, the location of the mines, the location of any machine and building in the map, the artefacts, and links to the related rsi file.
"*.spl" files describe the AI strategy for that map.
logos.dat -> list of the bitmaps of the in-game logos.
parmdata.dat -> sets the parameters for the machines and buildings in game (i.e. default strategies and whatsoever)
sceninfo.dat -> describes the way the maps are associated to the Campaigns and Skirmish and Multiplayer games.

//keep writing later, now I have to go....

Offline X-Lord

  • Eradicator
  • *
  • Posts: 852
  • Karma: 40
  • Gender: Male
  • Modder
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #11 on: June 14, 2009, 05:09:48 pm »
Karma +1 for listing all the files descriptions :D

Offline Jhack89

  • Reaper
  • *
  • Posts: 14
  • Karma: 2
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #12 on: June 14, 2009, 08:31:53 pm »
Ahah, thank you X-Lord! ^^
Actually I want to make much of a more comprensive list, but I guess I'll have to wait until Thursday, since I have to take a couple of challenging exams before~

Offline bipolar88

  • Warrior
  • ***
  • Posts: 5
  • Karma: 0
    • View Profile
Re: IN DEVELOPMENT: MMap (Machines Map anchor program)
« Reply #13 on: August 11, 2009, 04:17:40 pm »
great,that will improe really a lot the game since we can create our own maps,that would make the game really dinamic

Offline f

  • Knight
  • *
  • Posts: 95
  • Karma: 11
    • View Profile
Re: ALPHA-RELEASE: MMap (Machines Map anchor program)
« Reply #14 on: October 25, 2009, 07:41:36 pm »
EDIT: Attached a pic of the new version I'm working on.



Buttons/functions: (ordering from top as on pic)
- Open unit browser
- Export m_desert.scn
- Pencil (single click unit creating)
- Brush (hold mouse to create multiple units)
- Point Eraser (single click eraser)
- Eraser (hold mouse to remove units)

(NEW FUNCTIONS HERE:)
- Edit race red
- Edit race blue
- Edit race yellow
- Edit race green
(yes, it can add units to races and export WHOLE m_desert.scn, no need to paste stuff into)

- Place mineral site
- Place infinite mineral site (or 999999, if you want)

- Place baob (those trees you find on the map)


The arrows at bottom are for setting unit angles.
« Last Edit: October 26, 2009, 10:53:34 am by Foley »
Quote
no