MegaGlest Forum

Modding and game content creation => Tools => Topic started by: anonymousjim on 2 December 2010, 14:02:07

Title: Glest XML Editor! [version 2 beta now out]
Post by: anonymousjim on 2 December 2010, 14:02:07
DOWNLOAD (new version) (http://www.mediafire.com/?lz8eowl65pj7owz) stats (http://kiwi6.com/file/5vifbrqmw4)
(Currently Windows Only)

Hi,
me again,
I've been doing quite a bit of Glest recently and it's really fun to mod with but I find that writing the code for units, factions, techs and tilesets can be very consuming, especially since there are normally loads of minor errors to be fixed etc...  So, I came up with an idea to make a glest modding studio.  A program the makes the XML's for you if you tell it what you want through a series of screen input forms.  I've started building it and, while it's nowhere near complete, it's looking quite promising and I think it would cut down modding time by quite a lot.  So, my question is, how many of you guys would use such a program when it's made?  Do you think my idea is good, bad or in need of improvement?
Please would you post what you think and also give suggestions for the program if you would.
Cheers
Title: Re: Glest mod studio, opinions?
Post by: ElimiNator on 3 December 2010, 05:18:25
Sounds good but I think some people already are doing something like this, maybe?
Title: Re: Glest mod studio, opinions?
Post by: ultifd on 3 December 2010, 06:02:30
There's a WIP project called "Glest Developer (https://forum.megaglest.org/index.php?topic=6048.0)". I think that matches what you're asking for...
Title: Re: Glest mod studio, opinions?
Post by: -Archmage- on 3 December 2010, 06:13:51
There's a WIP project called "Glest Developer (https://forum.megaglest.org/index.php?topic=6048.0)". I think that matches what you're asking for...

I don't think that's going anywhere...
Title: Re: Glest mod studio, opinions?
Post by: ultifd on 3 December 2010, 06:47:43
I don't think that's going anywhere...
Heh, maybe. But if so, I wonder why...  :| I'll send a PM to check...
Title: Re: Glest mod studio, opinions?
Post by: Psychedelic_hands on 3 December 2010, 09:32:22
I don't think that's going anywhere...
Heh, maybe. But if so, I wonder why...  :| I'll send a PM to check...

He seemed pretty pissed...
Title: Re: Glest mod studio, opinions?
Post by: ultifd on 3 December 2010, 10:47:24
I was being sarcastic... But really, if he abandoned it...what a waste...
Title: Re: Glest mod studio, opinions?
Post by: anonymousjim on 3 December 2010, 14:34:00
so, I guess, that's a go-ahead?
Title: Re: Glest mod studio, opinions?
Post by: wciow on 3 December 2010, 15:26:39
Yes please do  :D

The above mentioned "Glest Developer" was never released and generally considered to be vapourware. However Silnarm (lead coder for GAE) made a basic mod developer called Glest Asset Manager. It might be useful to take a look at this as it was a very basic but functioning asset manager for Glest and might be helpful in figuring out which bits of code to look into  :)

Title: Re: Glest mod studio, opinions?
Post by: anonymousjim on 3 December 2010, 17:35:39
hmm, well, I'm not particularly doing an asset manager.  More like a lot of wizards to create the different things.  I may add in a way of linking things up later as well.  Right now I've done the tech one and I'm onto tilesets.  Yeah, coming along well, and making this is less depressing than trying to make painfully low-poly characters for my mod :p
Title: Re: Glest mod studio, opinions?
Post by: ultifd on 7 March 2011, 10:31:17
So did you finish developing this? After all you did start a mod...
Title: Re: Glest mod studio, opinions?
Post by: Gabbe on 7 March 2011, 10:52:59
What about a tool to check for errors? Like first you make a mod and then you tell a program to check this and this folder for XML-errors and/or upper/lowercase letter errors. WOuld actually improve efficiency a lot.
Title: Re: Glest mod studio, opinions?
Post by: ultifd on 7 March 2011, 10:58:20
Not sure for uppercase/lowercase problems are detected, but for XML errors all you need to do is run this command for megaglest... something --validate
Title: Re: Glest XML Editor! [UPDATE!]
Post by: ultifd on 21 March 2011, 07:17:02
Sorry for the double post, but it looks like he did it! Nice, could be a bit cleaner/"glestier" but it's fine for me!
http://www.gamefront.com/files/20146515/Glest+XML+Designer+by+AnonymousJim.exe

I hope you don't mind that I uploaded it, for others...
Title: Re: Glest XML Editor! [UPDATE!]
Post by: wciow on 21 March 2011, 15:18:51
Well its not exactly pretty and has some layout bugs on my windows machine but it does the job and will certainly help with the creation of unit XMLs  :)
Title: Re: Glest XML Editor! [UPDATE!]
Post by: anonymousjim on 11 June 2011, 04:59:57
Sorry lol, I forgot about this thread... So yeah, there's a new one going to be released soon.  The layout bugs shouldn't happen this time and it's quite a bit neater and cleaner in the layout.  When you say 'glestier' would you like me to give it a glest theme rather than looking like a normal program?

Also, does anyone have a visual basic compiler for linux?
Title: Re: Glest XML Editor! [UPDATE!]
Post by: anonymousjim on 11 June 2011, 17:31:08
sorry for double post but I've finished it and here it is for you guys to test and tell me your problems with.  next stage is a gae one methinks

download here (http://www.mediafire.com/?pvsmykrbnq135pw)
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: ultifd on 11 June 2011, 19:19:31
Please re-upload? Seems like a bad upload. (corrupted file...0KB)  :-X
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Mr War on 11 June 2011, 20:26:53
seems cool. Does it parse the inputs?
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: anonymousjim on 12 June 2011, 10:48:07
I hate the way that vb2010 exports!!!! I can't find the application :/

this is the best I can do, it should work (http://www.mediafire.com/?lz8eowl65pj7owz)

as for parsing/validation routines, there are none as yet.  To be honest though, this is really only an initial release and much will probably be added in future

Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: anonymousjim on 15 June 2011, 15:45:02
bump'd

it's been 3 days guys... anyone downloaded? opinions?
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Coldfusionstorm on 16 June 2011, 19:54:10
I liked it, its simple, not too advanced, the top tabs works well.

1.I did not see a load option for exsiting XML's. if there isnt, make one.
2.when browsing for a image, does it include the full path, it dosnt make sense to have the full path.

PS. please update the toplink with the newest release.
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Mr War on 17 June 2011, 02:54:30
I liked it and appreciate the effort. I'm probably not a typical user though I already have my XML habits. I see padding as a big issue, as with this people can still write XML that'd crash?

Maybe add a function that you can load a real XML from magitech as a blueprint so that the user can feel what sorts of values they ought to add. Like HP of 12067887 is dumb.
 
Thanks man.
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: anonymousjim on 17 June 2011, 10:21:32
hmmm, I have in mind some plans for an 'open' function but it might require quite a lot of work to make...

yeah.. it does include the full path... its stupid lol, i neeed to fix that, thanks for reminding me :p

its true the xmls can be imperfect, but that's what i need feedback for and suggestions to help me improve the software...
for the blueprint thing... i was really intending this for non-n00bs who know a bit about the xmls and just dont want to type it all... I could always add some range controllers etc, but then again that would be rather limiting to modders.  e.g. if there is a mod where everyone has high h.p. for some intricate mechanic to work then they wouldn't want to be stuck on low values
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Coldfusionstorm on 17 June 2011, 12:48:10
Do not make limits please, Only the game code should be the limiting factor.
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: anonymousjim on 17 June 2011, 14:39:59
yup, thats one of my strong beleifs lol, i really dont want to force people into a mould with the program
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: will on 17 June 2011, 15:54:01
What is needed is a spreadsheet approach to the values

By showing all the units on one faction on the vertical axis and all the units of another faction on the horizontal axis, with the basic win formula - and other heuristic comparisons - you can double-click on a unit to edit its values; double-click on a cell in the grid to edit the values of one side and see, live, the outcome when fighting the unit of the other side.

And so on.
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: anonymousjim on 17 June 2011, 16:05:53
but what about mods that have very different yet balanced teams with units that don't directly relate to each other?
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: will on 17 June 2011, 16:25:59
That's why its a table showing faction vs faction - the overall thing should be roughly balanced - although the user might have a concept of what balance of speed vs firepower vs rate of fire vs production vs harvesting etc that makes it overall balanced but adopting different strategies.

Showing it all spreadsheet-like - with a selection on waht you are looking at exactly - will help people get more balanced.
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: anonymousjim on 17 June 2011, 18:27:26
hmm, ok, I may work on systems like that later on if I expand the editor so it makes faction or tech tree xml's, it doesn't particularly seem to be such a useful feature when you're making individual unit xml's
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Coldfusionstorm on 18 June 2011, 16:15:36
hmm, ok, I may work on systems like that later on if I expand the editor so it makes faction or tech tree xml's, it doesn't particularly seem to be such a useful feature when you're making individual unit xml's

QFT

PS. QFT Means Quoted for Truth
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Mr War on 18 June 2011, 20:22:40
Who here writes XML from scratch? I use copy / paste and tweaking of existing code mostly, just adding extra lines if needed.
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: John.d.h on 18 June 2011, 20:54:17
Who here writes XML from scratch? I use copy / paste and tweaking of existing code mostly, just adding extra lines if needed.
I wrote my XML templates for Solunar from scratch, just for everything in that mod to be my own.  It's not really healthy or practical, but it satisfies my mental compulsiveness. :P
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Omega on 19 June 2011, 03:44:07
I do most of my XML editing in scratch. I occasionally copy over things I can't remember, but for the most part, I type fast and I know what I'm doing. I know Glest's XMLs very very well. Combine this with Notepad++, which can close XML tags automatically and syntax highlighting which makes mistakes blindingly obvious, and we got a pretty good deal going.
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: ultifd on 19 June 2011, 06:39:16
I think for people to make their XMLs from scratch, they need to be able to type fast. And then there are other type of  foreign keyboards, and I'm not so sure it would be easy to type what is needed...
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Coldfusionstorm on 23 June 2011, 13:50:13
i do not make them from scratch, but i use notepad++, and i think the ability to navigate XML's so easily is what makes a good glest xml "programmer"
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: ElimiNator on 23 June 2011, 16:25:43
I think for people to make their XMLs from scratch, they need to be able to type fast. And then there are other type of  foreign keyboards, and I'm not so sure it would be easy to type what is needed...
I don't do mine from scratch ether, I copy Tech (Or some other faction) and modify it.
Title: Re: Glest XML Editor! [version 2 beta now out]
Post by: Omega on 23 June 2011, 16:44:11
I think for people to make their XMLs from scratch, they need to be able to type fast. And then there are other type of  foreign keyboards, and I'm not so sure it would be easy to type what is needed...
I don't do mine from scratch ether, I copy Tech (Or some other faction) and modify it.
While I do mine for the most part from scratch, I do often make use of the templates on the Wiki just to save typing it all up and then just tweaking the values. Time is money, and money is...well, money.