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 Tue Oct 15, 2024 8:47 am
All times are UTC + 0
I am working on a new map editor for the remasters
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [20 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Fri Jul 10, 2020 9:23 am    Post subject:  I am working on a new map editor for the remasters Reply with quote  Mark this post and the followings unread

I am in the process of writing new a map editor for the remasters.
Why am I doing this? The current options all have limitations. Lets look at those options:
1.The Petroglyph editor that is included with the remaster. Not the easiest to use. Has a number of bugs and missing items. Its basically impossible to extend if you add new things in a mod and want to place them on a map. No indication that Petroglyph plan to either open source their editor (nice as that would be) or to put any real work into improving it.

2.Edwin by westwood. VERY limited feature set. Doesn't seem to work when I try to run the exe from my Origin copy of the game (asks for a CD). Doesn't support the remasters (the new things the remasters need, the remaster graphics, things you add in mods etc). Red Alert only.

3.RAED. Also doesn't support the remaster stuff and also red alert only. Closed source and not extensible.

4.CCMAP. No remaster support, possibly limited features, TD only. Closed source and not extensible.

5.XCC Editor. No remaster support, not the easiest to use. Open source but the XCC codebase is a nightmare to work so its not even worth trying to modify or extend this. Also TD only.

6.The inbuilt scenario editor (that is included in the source drops) as part of a vanilla "direct replacement for the original exe" project. No remaster support, not necessarily designed for ease-of-use and subject to the limitations of the 25yo in-game UI code.

7.The inbuilt scenario editor as part of a more comprehensive upgrade to the codebase. Still suffers from limitations of the original 25yo source (unless you rewrite lots of it which takes effort and time).

and 8.The inbuilt scenario editor as part of a dll mod for the remaster itself. This is a non-starter, the dll doesn't get enough access to the GlyphX engine to even try it (and there are far too many things hardcoded in the GlyphX side to make this happen).

As for my new editor, its written in C++ using plain win32 for the UI, GDI+ for the graphics rendering, FreeImage for image loading, miniz for zip file handling and pugixml for XML parsing.

The code is available at https://github.com/jonwil/remasteredit and is licensed under the GPL3 (same license as the remaster source code which I am using bits of)

I am aiming to keep it clean and modern using all the latest C++ features that make sense to use without doing the things that can make programs super-complex.

The goal is to render things in the same way the engine renders them (e.g. team colors) and not hard-code things if they don't need to be hardcoded (reading directly from the meg files, xml files and other remaster files). Its hopefully going to be easy to modify and extend whilst having none of the limitations and bugs of the Petroglyph editor. (and being C++ it should also theoretically be faster than the C# Petroglyph used although just how much difference it makes these days I dont know)

Right now when you stick the editor in the remaster game folder and run it you can load a map (td or ra) and it will render the contents on screen (so far it renders map tile templates, smudges, overlays, terrain and buildings). You can also zoom in and out and scroll around.

Attached is a screenshot of what I have so far.

I an hoping there are other people out there who want to help out with this project (especially C++ programmers but also people who can e.g. help design the UI or provide feedback or otherwise be useful to the project)



test.png
 Description:
 Filesize:  4.11 MB
 Viewed:  37726 Time(s)

test.png



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


Joined: 07 Apr 2005

PostPosted: Fri Jul 10, 2020 3:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Nice work Jonwil, glad to see some progress!

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


Joined: 24 Jul 2005

PostPosted: Wed Jul 15, 2020 1:03 am    Post subject: Reply with quote  Mark this post and the followings unread

I just finished adding aircraft support.
This is now the first map editor (even if it can't actually edit anything yet) for TD/RA that can properly render the rotor blades on helicopters (none of the previous editors even tried to render the rotor blades)



heli.png
 Description:
 Filesize:  134.06 KB
 Viewed:  37599 Time(s)

heli.png



Back to top
View user's profile Send private message
Banshee
Supreme Banshee


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Wed Jul 15, 2020 3:40 am    Post subject: Reply with quote  Mark this post and the followings unread

Great job so far. Keep it up! Smile

Back to top
View user's profile Send private message Visit poster's website Skype Account
Nyerguds
General


Joined: 24 May 2004
Location: Flanders (Be) Posts:300000001

PostPosted: Wed Jul 15, 2020 8:47 am    Post subject: Reply with quote  Mark this post and the followings unread

jonwil wrote:
I just finished adding aircraft support.
This is now the first map editor (even if it can't actually edit anything yet) for TD/RA that can properly render the rotor blades on helicopters (none of the previous editors even tried to render the rotor blades)

Just posting this here since I dunno which places you check most, but...

All map editors that have added aircraft to them are making a mistake; it has never been possible to place aircraft in maps. The section reading code exists, but doesn't work properly, and has always been disabled.

I enabled that once as experiment, and found out that aircraft spawn in mid-air, and that makes the game bug out and never properly mark the spawn cell as available for moving on it, creating a permanently impassable cell on the map.

All aircraft found landed in missions will have been reinforced by triggers on mission start.

I don't know about RA, but I suspect it's the same there.

_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
Gangster
Commander


Joined: 11 Jun 2004
Location: Moscow, Russia

PostPosted: Wed Jul 15, 2020 10:51 am    Post subject: Reply with quote  Mark this post and the followings unread

It would be nice to have it possible now with auto-script once placed on map Smile

_________________
Gangster is a Project Perfect Wuj (c)Aro

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


Joined: 06 Feb 2015

PostPosted: Wed Jul 15, 2020 12:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

Nyerguds wrote:
I enabled that once as experiment, and found out that aircraft spawn in mid-air, and that makes the game bug out and never properly mark the spawn cell as available for moving on it, creating a permanently impassable cell on the map.
I imagine that somebody in the community will eventually fix this bug in the original code. It makes good sense to have a map editor ready to take advantage of the feature once it is fixed.

Back to top
View user's profile Send private message
Oofjay
Civilian


Joined: 15 Jul 2020

PostPosted: Thu Jul 16, 2020 11:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Good stuff! An open-source, community made map editor is a good idea. I'm willing to help test and give feedback, if necessary, or perhaps contribute to the code.

I am having problem with opening a map though, when I load one in the new editor, it just crashes. I'm using GDI mission 14 as a random example (I've included it as an attachment).



scg14ea.ini
 Description:

Download
 Filename:  scg14ea.ini
 Filesize:  6.29 KB
 Downloaded:  7 Time(s)


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


Joined: 24 Jul 2005

PostPosted: Fri Jul 17, 2020 12:37 am    Post subject: Reply with quote  Mark this post and the followings unread

You need both the .ini and the .bin files for a TD map if you want it to load properly.

Back to top
View user's profile Send private message
Oofjay
Civilian


Joined: 15 Jul 2020

PostPosted: Sat Jul 18, 2020 12:50 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks, that did it.

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


Joined: 24 Jul 2005

PostPosted: Mon Jul 20, 2020 3:29 am    Post subject: Reply with quote  Mark this post and the followings unread

I have now finished implementing all the display logic. Vessels in red alert now render properly (including the correct turrets on the cruiser, gunboat and destroyer) as do vehicles (including all the different health states'/turret rotations of the GDI Gunboat, the special case colors for the Nod MCV and harvester and the spinning/animating bits on the Mobile HQ, Mobile Gap Generator, Mobile Radar Jammer and Tesla Tank) and infantry.

What I need now is some help from people who know UI/UX stuff and can come up with a good decent UI design (perhaps by pointing me at examples of good UI/UX in other map editors that I can then rip-off/replicate.

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


Joined: 30 Nov 2006
Location: Brisbane, Australia

PostPosted: Tue Jul 21, 2020 3:10 am    Post subject: Reply with quote  Mark this post and the followings unread

For UI dev, Godot is an interesting option and believe it or not good for broader application dev as well. However, you would have to embed your source inside it as native C++ addons then you can handle the events and UI with C#. As a byproduct, you make the application cross-platform without having to resort to using Qt, GTK, wxWidgets, etc etc.

Back to top
View user's profile Send private message Visit poster's website
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Tue Jul 21, 2020 8:57 am    Post subject: Reply with quote  Mark this post and the followings unread

I have already settled on C++, win32 and GDI+ for the UI and graphics and will not be using C#, godot, .NET, winforms, WPF, QT, GTK, wxWidgets or any other UI toolkit.
And cross platform isn't even a thing I care about at this point since this is a map editor being built for a game that only runs on Windows.

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


Joined: 30 Nov 2006
Location: Brisbane, Australia

PostPosted: Tue Jul 21, 2020 10:25 am    Post subject: Reply with quote  Mark this post and the followings unread

Fair enough, I had these opinions years ago for tool creation strictly C++, Win32 etc. Good work so far though.

Nope, works fine outside of windows as well:P



Screenshot_20200721_201730.png
 Description:
 Filesize:  268.04 KB
 Viewed:  37350 Time(s)

Screenshot_20200721_201730.png



Screenshot_20200721_201832.png
 Description:
 Filesize:  933.12 KB
 Viewed:  37350 Time(s)

Screenshot_20200721_201832.png



Back to top
View user's profile Send private message Visit poster's website
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Tue Jul 21, 2020 1:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

well if the game works on your system via WINE or similar, my editor should be able to work via the same method.

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


Joined: 24 Jul 2005

PostPosted: Fri Jul 31, 2020 7:40 am    Post subject: Reply with quote  Mark this post and the followings unread

It took a lot of work but now you can place templates in your map (and remove them and etc).
No save functionality yet but its still progress Smile

Back to top
View user's profile Send private message
Nyerguds
General


Joined: 24 May 2004
Location: Flanders (Be) Posts:300000001

PostPosted: Mon Jan 04, 2021 10:39 pm    Post subject: Reply with quote  Mark this post and the followings unread

pchote wrote:
Nyerguds wrote:
I enabled that once as experiment, and found out that aircraft spawn in mid-air, and that makes the game bug out and never properly mark the spawn cell as available for moving on it, creating a permanently impassable cell on the map.
I imagine that somebody in the community will eventually fix this bug in the original code. It makes good sense to have a map editor ready to take advantage of the feature once it is fixed.

I disagree. If something like that is ever modded in, then it can always be reactivated in the editor, but leaving it in by default is just asking for users getting frustrated about a feature not working.

_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
chimas
Civilian


Joined: 21 Mar 2021

PostPosted: Fri Mar 26, 2021 11:58 pm    Post subject: Re: I am working on a new map editor for the remasters Reply with quote  Mark this post and the followings unread

Hi,
There's a long time I don't come here in PPM site and discovered some interesting things going on here.  I find it interesting to have an editor that renders better because I have many maps to edit from the HUGE Collection and the fixes I made in the XCC era, now in the Remastered edition became flawed or "glitched" and I'll have to reedit them.

I hope you have the time to develop this project more frequently, I'll probably going to be the main customer. If you can forward your project to allow map editing and saving, sooner than other features it would be great. By that, I mean only interacting with the BIN file, although supported by the INI file.

If I'm asking too much, it's ok. Just a feedback.
Anyways, thanks for this project.

Back to top
View user's profile Send private message
CircuitLord444
Guest




PostPosted: Wed Aug 21, 2024 4:28 am    Post subject: Map Editor for the Remasters Reply with quote  Mark this post and the followings unread

Win32 for the UI? Ambitious, but perhaps a tad... cumbersome. You'll spend more time wrestling with window messages than actually innovating. Consider a cross-platform framework, something like Qt or wxWidgets. It'll save you headaches in the long run  Cool

Back to top
Nyerguds
General


Joined: 24 May 2004
Location: Flanders (Be) Posts:300000001

PostPosted: Wed Sep 18, 2024 4:33 pm    Post subject: Re: Map Editor for the Remasters Reply with quote  Mark this post and the followings unread

CircuitLord444 wrote:
Win32 for the UI? Ambitious, but perhaps a tad... cumbersome. You'll spend more time wrestling with window messages than actually innovating. Consider a cross-platform framework, something like Qt or wxWidgets. It'll save you headaches in the long run  Cool

Cross-platform? For a Windows game? I don't see the point, really.

I don't think Jonwil is still working on this editor; the last commit to his repository was 4 years ago. I have since taken up the task of instead upgrading the map editor included in the remaster, or rather, Rampastring's fork of it, and that project (Mobius Map Editor) is still under active development to this day, with a new version on the horizon. This editor is capable of using either the remaster files, or the original classic files.

_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [20 Posts] 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.6460s ][ Queries: 17 (0.3882s) ][ Debug on ]