[Alpha 0.606] FA Forever Map Editor

Post here if you want to help developing something for FAF.

Re: [Alpha 0.416] FA Forever Map Editor

Postby ozonex » 19 Mar 2016, 07:41

Lionhardt wrote:Is it possible btw, to use the windows file browser from inside the editor rather than that inbuilt one?

Oh and also, you know what would be the single most amazing thing to have in your editor? A layer manager for decals!

So you can create management layers, and select them, then you will be able to only select decals on that layer. Because as it is right now, accessing lower decals is very annoying. If you had created a layer before though which you assigned the lower decals to, then you could later just select that layer and easily select he lower lying decals.

Another great addition would be a list that shows all currently selected decals, clicking on one of the decals n the list once would highlight it in a different color, double clicking the the entry would select it. This feature would be even better than the layer manager.

I dont know how to use system file browser from game. Unity give functions to that, but they work only in unity editor, not in builded app.

Added that decals features to TODO list.
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: [Alpha 0.416] FA Forever Map Editor

Postby ozonex » 19 Mar 2016, 10:03

v0.417
- Undo heightmap change
- Symmetry for heightmap brush
- Brush rotation
- Added 2 mountain brush
- Much faster map loading
- Fixed terrain shader (grab pass layer was sometimes empty)
- M + LMB + mouse move - change brush strength
- B + LMB + mouse move - change brush size

Image

http://ozonex.pl/fafmapeditor/fafmapedi ... _v0417.zip
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: [Alpha 0.417] FA Forever Map Editor

Postby nine2 » 19 Mar 2016, 10:26

Do you then have the ability to write a console app that could load a map and render a high quality png/jpeg if a map to a file?

Ckitching wants such a tool and will put the hires images in the lobby.
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: [Alpha 0.417] FA Forever Map Editor

Postby ozonex » 19 Mar 2016, 11:03

Anihilnine wrote:Do you then have the ability to write a console app that could load a map and render a high quality png/jpeg if a map to a file?

Ckitching wants such a tool and will put the hires images in the lobby.

I can load and render png of any resolution, but I'm not sure about that console options.

Need to read if this is possible in unity. If not, then we can create app that only do this. It will take settings from txt and generate file in that direction.

I can also add option to editor - render hires screenshot and save it as preview image in map folder.
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: [Alpha 0.417] FA Forever Map Editor

Postby nine2 » 19 Mar 2016, 11:28

Cool you should sign up at faforever.slack.com where the devs chat
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: [Alpha 0.417] FA Forever Map Editor

Postby ozonex » 19 Mar 2016, 11:40

Anihilnine wrote:Cool you should sign up at faforever.slack.com where the devs chat

but I don't have @faforever.com email

Just found how to get command line arguments:
Code: Select all
string[] Args = System.Environment.GetCommandLineArgs();


So yes, it is possible. We can send arguments to mapeditor and it will start, load map from path, render image and save it and then close.
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: [Alpha 0.417] FA Forever Map Editor

Postby ozonex » 19 Mar 2016, 18:30

Done ;)

Starting app with arguments -renderPreviewImage [width] [height] [lua path] [save.png path] will render and save png image. It will be available in next version.

Example:
Code: Select all
C:\Users\ozone_000\Desktop\FAForeverMapEditor.exe -renderPreviewImage 4096 4096 "U:/Github/FAForeverMapEditor/maps/hexagonian_drylands.v0005/hexagonian_drylands_scenario.lua" "C:/Users/ozone_000/Documents/New folder/testrender.png"


Rendered 4k orthographic image of map:
Image

Full image here:
https://drive.google.com/file/d/0B3-uxE ... sp=sharing
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: [Alpha 0.417] FA Forever Map Editor

Postby ozonex » 20 Mar 2016, 15:45

v0.418
- Render image from command line arguments: -renderPreviewImage [width] [height] [lua path] [save.png path]
- Changed texture load from gamedata - its not unpacking and then loading, but now its loading them directly. Thanks to that loading is much faster.

Seton load now in 2s.
Load and render of 2k image of seton takes 3s. Is quite fast now, but i can't find a way to do it in background. Unity need to start its window to be able to render camera.

8k seton render
https://drive.google.com/file/d/0B3-uxE ... sp=sharing

http://ozonex.pl/fafmapeditor/fafmapedi ... _v0418.zip
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: [Alpha 0.418] FA Forever Map Editor

Postby Lionhardt » 21 Mar 2016, 01:33

This is very cool, I tried messing around with super sampling at some point to get bigger overview pictures, but that didn't work out.
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: [Alpha 0.418] FA Forever Map Editor

Postby MCPXXL » 23 Mar 2016, 16:29

Hello

i am new to this but verry interristet in this editor it looks awsome

I am able to load a map and edit it
save is also done but tyrying to load the map will crash my system
is there something what i have to do addiontional ?


and please excuse my german grandpa english
MCPXXL
 
Posts: 1
Joined: 23 Mar 2016, 16:22
Has liked: 0 time
Been liked: 0 time

PreviousNext

Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest