Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Mar 28, 2024 10:01 am
All times are UTC + 0
RA2/YR full map picture renderer released
Moderators: Community Tools Developpers
Post new topic   Reply to topic Page 1 of 2 [76 Posts] Mark the topic unread ::  View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Sun May 10, 2009 11:58 am    Post subject:  RA2/YR full map picture renderer released Reply with quote  Mark this post and the followings unread

Hi all, over the last 2,5 years I've been working on and off on a program that renders RA2 maps. I completely restarted my project just over a year ago and added support for mods and YR.
A few days ago I finished most of the functionality I planned, hacked up a quick GUI and put an installer up.
For now I do not render any voxels, and LightIntensity on lamps is not processed correctly yet. Other than that, the tool managed to render all 178 maps in multimd.mix in just under 12 minutes on my system.
The sources compile under windows and linux on both x86 and x64 architectures.

For those interested, sources are on the sourceforge svn too.

Any comments are welcome Smile

2013 update: project moved to http://github.com/zzattack/ccmaps-net

Last edited by zzattack on Sat Aug 31, 2013 3:39 pm; edited 4 times in total

Back to top
View user's profile Send private message Send e-mail
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Sun May 10, 2009 12:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is bloody awesome!

A tool what mappers really need, good stuff! Wink

Any chance of a version to render TS maps? Map format is the same of course...

Back to top
View user's profile Send private message
Aro
Alcohol Fueled


Joined: 10 Sep 2006

PostPosted: Sun May 10, 2009 1:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

A Version that renders TS maps would be awesome, would save me so much time.

Back to top
View user's profile Send private message
Lt Albrecht
Defense Minister


Joined: 25 Jul 2007
Location: Hampshire, England. Creating RA2: Moscow's vengeance

PostPosted: Sun May 10, 2009 1:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sweet, nice one mate Wink. Welcome back to PPM too #Tongue Not seen you arouund before but you joined before me so it's not surprising.

_________________
Yes, work on MV continues. It is not forgotten.

Back to top
View user's profile Send private message Skype Account
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Sun May 10, 2009 1:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hm, got a problem, it has trouble with finding the mix files in the directory i point it to, do certain characters truncate the path?

Back to top
View user's profile Send private message
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Sun May 10, 2009 1:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here, I made a test image of the Bay Of Pigs map. What do you think? Which one's better, the original or the new one (note, the size differs a bit)?



westwood.png
 Description:
Original
 Filesize:  13.27 KB
 Viewed:  28177 Time(s)

westwood.png



BayOPigs.png
 Description:
New render
 Filesize:  69.1 KB
 Viewed:  28176 Time(s)

BayOPigs.png



_________________


Back to top
View user's profile Send private message
Aro
Alcohol Fueled


Joined: 10 Sep 2006

PostPosted: Sun May 10, 2009 1:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

The new one, definitely. That's fantastic.

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Sun May 10, 2009 1:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Can it render full size? Or is it just thumbnails?

Back to top
View user's profile Send private message
Lt Albrecht
Defense Minister


Joined: 25 Jul 2007
Location: Hampshire, England. Creating RA2: Moscow's vengeance

PostPosted: Sun May 10, 2009 1:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Brilliant, it shows elevation and bridges and everything =D

_________________
Yes, work on MV continues. It is not forgotten.

Back to top
View user's profile Send private message Skype Account
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Sun May 10, 2009 2:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hyper wrote:
Can it render full size? Or is it just thumbnails?


Full map size. I only shrank it so it'd fit as a minimap preview.

_________________


Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Sun May 10, 2009 2:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Epic! Now only if i could make it work #Tongue

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Sun May 10, 2009 7:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for the replies.

Aro wrote:
A Version that renders TS maps would be awesome, would save me so much time.
I initially planned on doing this. If there's still enough interest I think I'll either add support to the current tool, or release a seperate one for TS.
Lt Albrecht wrote:
Sweet, nice one mate Wink. Welcome back to PPM too #Tongue Not seen you arouund before but you joined before me so it's not surprising.
Thanks, but I've never actually been active in the CNC modding scene.
Hyper wrote:
Hm, got a problem, it has trouble with finding the mix files in the directory i point it to, do certain characters truncate the path?
I'm not sure actually, I've used some simple commandline parsing code I found on google. What's your command line, perhaps I can reproduce it? The -m option is added so that multiple instances can be used, i.e. one modded version of the game from one folder and another version in another folder. Also required for linux of course, as there's no registry to read the install path from.
Crimsonum wrote:
Full map size. I only shrank it so it'd fit as a minimap preview.
I see you used the ore/gems emphasizing options, this way it actually looks really close compared to the original preview Smile
Lt Albrecht wrote:
Brilliant, it shows elevation and bridges and everything =D

I think I've got most of the game's internal behaviour reproduced. For example ore and tiling are recalculated. I'm not sure if it has a name, I named it auto-clatting or auto-connect-latting. Anyway, it's how the game recalculates the tiles used between different LAT tiles. Also there's support for auto-clat overrides. I wrote some about it here: http://ccmaps.wiki.sourceforge.net/Auto-lat. Also the way ore is spread is mimiced, although that's randomized. Lighting and lightsources are implemented and affect the result, but the LightIntensity tag is surely not used correctly yet.
Most work left to do is implementing code to render voxels. You can see this for example when rendering a map with an outpost, it'll be missing the patroit missile thing on top of it.

Back to top
View user's profile Send private message Send e-mail
Lt Albrecht
Defense Minister


Joined: 25 Jul 2007
Location: Hampshire, England. Creating RA2: Moscow's vengeance

PostPosted: Sun May 10, 2009 7:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

#Tongue Voxels you'll have to do HVA reading and all that good(bad)ness #Tongue Otherwise you'll end up with retarded looking vehicles on larger scale images Wink Stucuk (IDK if I spelled it right) and Banshee know about voxel rendering, so they might be good to ask Wink

_________________
Yes, work on MV continues. It is not forgotten.

Back to top
View user's profile Send private message Skype Account
Shadow Hunter
Cyborg Commando


Joined: 30 Aug 2008
Location: Brazil.

PostPosted: Sun May 10, 2009 7:49 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, it looks a lot cool, but i'm having saome problems to download, can someone upload it in other site, please?

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Sun May 10, 2009 7:54 pm    Post subject: Reply with quote  Mark this post and the followings unread


Back to top
View user's profile Send private message Send e-mail
Shadow Hunter
Cyborg Commando


Joined: 30 Aug 2008
Location: Brazil.

PostPosted: Sun May 10, 2009 8:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

thanks, now i downloaded it, it is fantastic! Smile

Ps:the filesize is a little big XD (10mb)

but still fantastic! Very Happy

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Sun May 10, 2009 8:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

Shadow Hunter wrote:
thanks, now i downloaded it, it is fantastic! Smile

Ps:the filesize is a little big XD (10mb)

but still fantastic! Very Happy

Thanks. About the filesize, there's nothing that can be done about that really. You can chose to output JPG and lose some information, but PNG might be desirable in other situations so I added an option to output either or both

Back to top
View user's profile Send private message Send e-mail
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Sun May 10, 2009 8:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Filesize is nothing compared to the awesome'ness of this tool! #Tongue

BTW, my directory's string;
I:\Command & Conquer\Command & Conquer Red Alert(tm) II\RA2

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Sun May 10, 2009 9:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hyper wrote:
Filesize is nothing compared to the awesome'ness of this tool! #Tongue

BTW, my directory's string;
I:\Command & Conquer\Command & Conquer Red Alert(tm) II\RA2

That works fine for me. I changed I:\ into C:\, but it shouldn't matter. Did you put the directory name in quotes? Can you show the complete command line? What error do you get? Do the files actually exist there?

Back to top
View user's profile Send private message Send e-mail
Shadow Hunter
Cyborg Commando


Joined: 30 Aug 2008
Location: Brazil.

PostPosted: Sun May 10, 2009 10:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, i'm was testing with some maps here but i'm having some problems:

-I can't select my .yrm or .mpr maps!
--in some maps when it get in the part:drawning tile i can a error, it say it was finished but won't finish! Sad

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Mon May 11, 2009 11:49 am    Post subject: Reply with quote  Mark this post and the followings unread

Shadow Hunter wrote:
Well, i'm was testing with some maps here but i'm having some problems:

-I can't select my .yrm or .mpr maps!
--in some maps when it get in the part:drawning tile i can a error, it say it was finished but won't finish! Sad

Please send me those maps on which you get errors.

I've updated the installer to fix a few issues regarding lamps and in the GUI of not being able to select extensions.

I'll try to pick up a copy of Tiberian Sun and FireStorm later today, or just TFB if I can find it, so I can look into TS/FS.

https://sourceforge.net/project/showfiles.php?group_id=231676&package_id=280907&release_id=681162

Back to top
View user's profile Send private message Send e-mail
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Mon May 11, 2009 2:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

zzattack wrote:
Hyper wrote:
Filesize is nothing compared to the awesome'ness of this tool! #Tongue

BTW, my directory's string;
I:\Command & Conquer\Command & Conquer Red Alert(tm) II\RA2

That works fine for me. I changed I:\ into C:\, but it shouldn't matter. Did you put the directory name in quotes? Can you show the complete command line? What error do you get? Do the files actually exist there?


Ill find out later, ill try the command line app, i was using the GUI.

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Mon May 11, 2009 3:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hyper wrote:
zzattack wrote:
Hyper wrote:
Filesize is nothing compared to the awesome'ness of this tool! #Tongue

BTW, my directory's string;
I:\Command & Conquer\Command & Conquer Red Alert(tm) II\RA2

That works fine for me. I changed I:\ into C:\, but it shouldn't matter. Did you put the directory name in quotes? Can you show the complete command line? What error do you get? Do the files actually exist there?


Ill find out later, ill try the command line app, i was using the GUI.

The GUI shows the commandline used, it's on the bottom. Can you paste that?

Back to top
View user's profile Send private message Send e-mail
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Mon May 11, 2009 3:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
I see you used the ore/gems emphasizing options, this way it actually looks really close compared to the original preview


If you indeed plan to apply TS support (which would be awesome!), you could add green lighting for green Tiberium, and blueish-purple for blue Tiberium, in a similar manner.

_________________


Back to top
View user's profile Send private message
Revolutionary
Commander


Joined: 19 May 2008
Location: Scotland, starting a Revolution Cameo: metricon. Posts:???

PostPosted: Mon May 11, 2009 4:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is a great tool Very Happy

only comments are
voxels as you said (mainly the turrets look bad),
1 or 2 buildings have bits missing (not that big a deal),
there are no colours other than grey (again not a big deal or needed but it would make single player maps look nicer and easyer to see whats whos)
and the bridges are offset (see pic)

other than that Great job and i look forward to seeing TS, FS and YR support.



sov111s.png
 Description:
red rings
 Filesize:  1.38 MB
 Viewed:  27991 Time(s)

sov111s.png



Back to top
View user's profile Send private message Send e-mail Skype Account
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Mon May 11, 2009 5:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
YR support.


Uh...there already is.

_________________


Back to top
View user's profile Send private message
Revolutionary
Commander


Joined: 19 May 2008
Location: Scotland, starting a Revolution Cameo: metricon. Posts:???

PostPosted: Mon May 11, 2009 6:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

strange it didnt work for me Confused
ill try again

i feel bad for pointing out more problems now but there are 1 or 2 buildings (eg the statue of liberty and the allied power plant) that are showen in the wrong pallet.

_________________
Creator of TS:BoB and some other things that might be good when finnished.

Back to top
View user's profile Send private message Send e-mail Skype Account
Lt Albrecht
Defense Minister


Joined: 25 Jul 2007
Location: Hampshire, England. Creating RA2: Moscow's vengeance

PostPosted: Mon May 11, 2009 7:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

Liberty has a custom palette and hte PP always looks weird non-ingame IIRC

_________________
Yes, work on MV continues. It is not forgotten.

Back to top
View user's profile Send private message Skype Account
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Mon May 11, 2009 8:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Crimsonum wrote:
Quote:
I see you used the ore/gems emphasizing options, this way it actually looks really close compared to the original preview


If you indeed plan to apply TS support (which would be awesome!), you could add green lighting for green Tiberium, and blueish-purple for blue Tiberium, in a similar manner.

I've bought TFD today. Seems like a good idea.

Revolutionary wrote:
This is a great tool Very Happy
only comments are
voxels as you said (mainly the turrets look bad),
1 or 2 buildings have bits missing (not that big a deal),
there are no colours other than grey (again not a big deal or needed but it would make single player maps look nicer and easyer to see whats whos)

other than that Great job and i look forward to seeing TS, FS and YR support.

Thanks. Missing building parts are probably all voxels. I haven't been able to reproduce the thing where the conyard misses that part. Could you send me your map?
I'll search for remappable schemes to give buildings their actual owner's color. So far I think I've copied one from Banshee's SHP editor (for neutral objects). Should be easy to find the others.

Quote:
and the bridges are offset (see pic)
. That's quite weird, but then again bridges are placed a little weird. If you send me the map I'll look into it inmediately.

About power plants not having the correct palet: easy fix, I used a wrong check somewhere so the first SHP file in building/overlay/vehicletypes etc would get the same palet, but that's fixed.
About liberty statue: fixed too. Now I finally understand the purpose of that palet named "lib" #Tongue

Back to top
View user's profile Send private message Send e-mail
Shadow Hunter
Cyborg Commando


Joined: 30 Aug 2008
Location: Brazil.

PostPosted: Mon May 11, 2009 11:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, i can't post the problem in here because, they are from my mod or others mappers maps, sorry! >_<

But i maded a list of some problems:

-trasitions tiles (sand to normal grass) beetween terrains has some problems!!!
--problem with the power plant in images with wrong pallete!!!
---Turrets won't show!!!
----yuri wall show as the nod one!
-----looks like it won't show the tanks!
------in missions, the side has everytime the grey colour!
-------The gi has the pallete problem too!

Back to top
View user's profile Send private message
TheNecro
Rocket Infantry


Joined: 22 Apr 2009
Location: >THE< United States of America

PostPosted: Mon May 11, 2009 11:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

I put in the info and it generated this command:
Quote:
cncmaprender.exe -i "C:\Westwood\RA2\stand off.yrm" -j -m "C:\Westwood\RA2"-r -S

And, my RA2 and RA2MD.mixes are in there, and it still says:
The program wrote:
Error: mix files not found in "C:\Westwood\RA2-r".

And, it says that the map image was created but that if I can't see it that an error occurred, and that I should contact you via e-mail.

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Tue May 12, 2009 8:55 am    Post subject: Reply with quote  Mark this post and the followings unread

TheNecro wrote:
I put in the info and it generated this command:
Quote:
cncmaprender.exe -i "C:\Westwood\RA2\stand off.yrm" -j -m "C:\Westwood\RA2"-r -S

And, my RA2 and RA2MD.mixes are in there, and it still says:
The program wrote:
Error: mix files not found in "C:\Westwood\RA2-r".

And, it says that the map image was created but that if I can't see it that an error occurred, and that I should contact you via e-mail.

I see, the fix is pretty simple, there's a space missing inbetween the closing " for the mix dir and the -r switch. I'll post a fix in a few days. For now you can replace the GUI with this file:
http://files.zzattack.org/patches/CNC%20Map%20Renderer%20GUI.exe

Shadow Hunter wrote:
Well, i can't post the problem in here because, they are from my mod or others mappers maps, sorry! >_<

But i maded a list of some problems:
Quote:

-trasitions tiles (sand to normal grass) beetween terrains has some problems!!!
I don't think so, I've taken a lot of care to render these transition tiles exactly the way they appear in game. Please show me what's wrong.

Quote:

--problem with the power plant in images with wrong pallete!!!
Yep, true, I fixed that (see my above post)

Quote:
---Turrets won't show!!!

Yep, they're voxels, which I don't show.
Quote:
----yuri wall show as the nod one!

I'll look into it asap.
Quote:
-----looks like it won't show the tanks!

Those are also voxels.
Quote:
------in missions, the side has everytime the grey colour!

I've worked on that. I'm still looking for the exact formula to remap colors, but I'm not sure how they work yet. Expect that to be fixed next release (also see above post)
Quote:
-------The gi has the pallete problem too!

Also fixed.

Last edited by zzattack on Tue May 12, 2009 9:52 am; edited 1 time in total

Back to top
View user's profile Send private message Send e-mail
Blade
Cyborg Commando


Joined: 23 Dec 2003

PostPosted: Tue May 12, 2009 9:31 am    Post subject: Reply with quote  Mark this post and the followings unread

Could your code be adapted into a real time map viewer/editor? The current map editor use by the community was bought by Westwood and has many shortcomings that are never likely to get fixed.

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Tue May 12, 2009 9:46 am    Post subject: Reply with quote  Mark this post and the followings unread

Blade wrote:
Could your code be adapted into a real time map viewer/editor? The current map editor use by the community was bought by Westwood and has many shortcomings that are never likely to get fixed.

Well of course, anything can be adapted. Then again, creating a map editor out of this would be insanely much work and I'm not up for that Sad
I've made the source code available to anyone so anything I did can be reused by someone else though.

Back to top
View user's profile Send private message Send e-mail
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Tue May 12, 2009 12:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yea, gotta agree with you there, though a lot of the code for writing the map compression and basic template still exists in the game, so eather way its possible, but a lot of work #Tongue

Back to top
View user's profile Send private message
TheNecro
Rocket Infantry


Joined: 22 Apr 2009
Location: >THE< United States of America

PostPosted: Tue May 12, 2009 4:49 pm    Post subject: Reply with quote  Mark this post and the followings unread

There is already FA2... Why would we need another map editor?

Back to top
View user's profile Send private message
Lt Albrecht
Defense Minister


Joined: 25 Jul 2007
Location: Hampshire, England. Creating RA2: Moscow's vengeance

PostPosted: Tue May 12, 2009 4:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Because it sucks. To be frank.

_________________
Yes, work on MV continues. It is not forgotten.

Back to top
View user's profile Send private message Skype Account
TheNecro
Rocket Infantry


Joined: 22 Apr 2009
Location: >THE< United States of America

PostPosted: Tue May 12, 2009 5:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

*Scratches head* Hmmm... I've always loved FA2. I mean sure you could improve it, but...

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Tue May 12, 2009 5:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

Trust me, FA and FS are coded like shit, they are just sloppy, hacks apps. We need a better tool, one that is OS too.

EDIT: The new GUI app works fine Frank, much better

Back to top
View user's profile Send private message
TheNecro
Rocket Infantry


Joined: 22 Apr 2009
Location: >THE< United States of America

PostPosted: Tue May 12, 2009 6:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

Maybe it's because I'm using Vista. It now says it can't find the render program even though I copy and pasted the file location from the other GUI. This is what the other GUI says is the file name:
Quote:
cncmaprender.exe

But, it says in the other GUI that the program can't be found.

EDIT: Nevermind, I realized that the original GUI was a shortcut. I followed it back to the main folder and replaced it with the new one, and then put a new shortcut on the desktop. Now it works! Thanks.

EDIT2: Okay, now there's a new problem. The map rendered, but there are three start points shown on the map. Even though, in the game there is only 2. I'm attaching the image. The one in the top middle is a false start point. Anyway, how would you use this as the in game preview? I also need to know how big it has to be to fit.



Stand Off.jpg
 Description:
There are 3 start points...
 Filesize:  52.96 KB
 Viewed:  27922 Time(s)

Stand Off.jpg



Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Tue May 12, 2009 6:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

TheNecro wrote:
Maybe it's because I'm using Vista. It now says it can't find the render program even though I copy and pasted the file location from the other GUI. This is what the other GUI says is the file name:
Quote:
cncmaprender.exe

But, it says in the other GUI that the program can't be found.

EDIT2: Okay, now there's a new problem. The map rendered, but there are three start points shown on the map. Even though, in the game there is only 2. I'm attaching the image. The one in the top middle is a false start point.

I noticed this additional start position too today, it's fixed. I'll probably put up a new release later tonight.

Quote:
Anyway, how would you use this as the in game preview? I also need to know how big it has to be to fit.

I posted some info about it here: http://forums.renegadeprojects.com/showthread.php?tid=1283&pid=14118#pid14118

I once hacked up a quick app to inject thumbnails from the commandline. Thumbnails are obtained by resizing them using irfanview's commandline.
This is what I posted:

Code:
InjectThumbs.exe "c:\mymap.mpr" "d:\someminimapimage.mpr"


Quite simplified, my batch file to do this did the following:
go through all .map files in a folder,
call the rendering program on it,
create a nice thumbnail for it (the hovering previews for ra2maps.net)
Code:

    i_view32 "%%d" /resize=^(600,0^) /aspectratio /resample /jpgq=95 /convert="thumb_%%~nd.jpg"

And a nice minimap
Code:

    i_view32 "%%d" /resize=^(144,133^) /aspectratio /resample /convert="prev_%%~nd.png"

And inject it into the map
Code:

   InjectThumbs.exe "%%c" "prev_%%~nd.png"

The path and filenames were carefully chosen so I could use this on large batches, but you'll get the idea. i_view32 is IrfanView by the way.

I attached the program too. I haven't really tested it, or used it much either, but it might work.



InjectThumbs.zip
 Description:

Download
 Filename:  InjectThumbs.zip
 Filesize:  87.83 KB
 Downloaded:  504 Time(s)


Back to top
View user's profile Send private message Send e-mail
TheNecro
Rocket Infantry


Joined: 22 Apr 2009
Location: >THE< United States of America

PostPosted: Tue May 12, 2009 7:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

No, that program isn't working, no error codes, it just stops working and Windows closes it.
I have have two more questions. How does the map render program pick colors for different terrain, does it use a pal? And, if I add terrain through a mod, will I have to change the program in any way?

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Tue May 12, 2009 8:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

No, you just replace the file in your directory, unless the tool dont read ecache & expand files with priority...

Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Wed May 13, 2009 1:46 am    Post subject: Reply with quote  Mark this post and the followings unread

I've uploaded version 0.94 to SVN, and a new installer is available on sourceforge.
See first post for details.

I think I've now got most of the functionality implemented. Other than voxel support and TS support I don't know of anything that I feel should be added. I fill proceed to add voxel support first, and later perhaps TS support. I've looked into the voxel file format and I estimate I will need about 30 hours of work to implement this. Expect a release in about a month.

Back to top
View user's profile Send private message Send e-mail
Shadow Hunter
Cyborg Commando


Joined: 30 Aug 2008
Location: Brazil.

PostPosted: Wed May 13, 2009 3:32 am    Post subject: Reply with quote  Mark this post and the followings unread

Well, i need again another mirror to download the file (some problems to download from that site) anyway, i have a suggestion for you render:
-make a option to don't show the buildings (for thoses single-player maps! Wink )

EDIT: i have an images of the tiles problems i was talkind about, is from the map "cold war", i will upload the map too, to you see!

EDIT2: i finally success downloaded from that site, no need others mirrors, thanks!



tiles problems.JPG
 Description:
 Filesize:  224.4 KB
 Viewed:  27839 Time(s)

tiles problems.JPG



mp18du.map
 Description:

Download
 Filename:  mp18du.map
 Filesize:  160.19 KB
 Downloaded:  382 Time(s)


Back to top
View user's profile Send private message
zzattack
Soldier


Joined: 29 May 2007

PostPosted: Wed May 13, 2009 10:19 am    Post subject: Reply with quote  Mark this post and the followings unread

Shadow Hunter: I fixed the tiling issue. It was caused by "median" tiles not being defined in snow theater, and thereby defaulting to 0 instead of -1 or something, which confused the program into thinking of not connecthing those transitions (because median tiles and clear are not connected).

Back to top
View user's profile Send private message Send e-mail
Shadow Hunter
Cyborg Commando


Joined: 30 Aug 2008
Location: Brazil.

PostPosted: Wed May 13, 2009 10:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, this will be a great tool for much mappers, thanks! Smile

Back to top
View user's profile Send private message
MadHQ
Commander


Joined: 07 Nov 2003

PostPosted: Thu May 14, 2009 5:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ya I will say it works great! XP
Are these able to be used in-game? Like what you can do with TS? Or is this just for show?


_________________
MadHQ's Graveyard - Click here!
(Permissions) - (F.A.Q.)

Back to top
View user's profile Send private message Skype Account
Aro
Alcohol Fueled


Joined: 10 Sep 2006

PostPosted: Thu May 14, 2009 5:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

Dude, that map is awesome. Very Happy

Back to top
View user's profile Send private message
TheNecro
Rocket Infantry


Joined: 22 Apr 2009
Location: >THE< United States of America

PostPosted: Thu May 14, 2009 6:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yea, I think it will work the same in FA.

I asked the same question yesterday, and got this answer: Custom minimap...

Anyway, crazy map! How long did it take you? And, is it SP or MP? I ask the second question because I see no start points, but that could just mean you didn't select to show start points.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 2 [76 Posts] Goto page: 1, 2 Next
Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2450s ][ Queries: 18 (0.0221s) ][ Debug on ]