Suggestion: Make it easier to create themes

7 replies [Last post]
mrboese
User offline. Last seen 6 years 38 weeks ago. Offline
Joined: 2010-12-27
Posts: 22

I suggest to use a xml-Based Theme description (Theme.cfg -> Theme.xml).
It's easier to understand and better to modify and/or maintain. You may also add comments to the XML file, so the creator dont have to look up always the parameters in the tutorial.

I uploaded an example xml file on my homepage:
http://tilegame.bplaced.net/Suggestion_HW_Theme.xml.txt

nemo
nemo's picture
User offline. Last seen 5 weeks 17 hours ago. Offline
Joined: 2009-01-28
Posts: 1861

Seems unlikely an XML parser will be added to the engine dependancies.
A compromise would be altering the theme parser to be more similar to the locale files, which support comments and groupings.

http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Locale/en.txt

For example

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

mrboese
User offline. Last seen 6 years 38 weeks ago. Offline
Joined: 2010-12-27
Posts: 22

Or somebody can create a editor or at least a converter for the xml file.
I could will do this, but for Windows only, because I'm using the .NET platform (I don't know if Mono is already supporting .NET 2 or .NET 3 code)

When I'm finished, I will publish the code, too, so it can be ported to other OS if its possible.

mrboese
User offline. Last seen 6 years 38 weeks ago. Offline
Joined: 2010-12-27
Posts: 22

I already started developing the editor:

It will have a option to export the data to the HW-Cfg. And it will be open source when i'm finished, so it can be ported to other OS.

nemo
nemo's picture
User offline. Last seen 5 weeks 17 hours ago. Offline
Joined: 2009-01-28
Posts: 1861

ugh. mono / .net Sad Smiley

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

mrboese
User offline. Last seen 6 years 38 weeks ago. Offline
Joined: 2010-12-27
Posts: 22

Programming with .NET is (compared to C++) very easy and fast*, because the .NET library brings some nice functions with it.

Many people are thinking that these programs are very slow (like java), but this is not true. You can program complex 3D games using .NET and the DirectX wrapper "XNA" (For XBOX360, Windows Phone, Zune and PC), SlimDX, Ogre#, ...

*I'm almost finished.

Installing .NET or MONO won't kill you Big Grin

New screenshot: The editor for Land Objects

nemo
nemo's picture
User offline. Last seen 5 weeks 17 hours ago. Offline
Joined: 2009-01-28
Posts: 1861

Programming in almost anything is easier than C++.
That's hardly a reason to go to .NET

Here are some reasons why I think "ugh" and why I also think
"No way in hell is this going anywhere near the hedgewars code base"

http://en.wikipedia.org/wiki/.NET_Framework#Standardization_and_licensing
and also.
"While the standards that make up .NET are inherently cross platform, Microsoft's full implementation of .NET is only supported on Windows."

.NET is just Microsoft's attempt to reassert themselves in a domain they don't belong in, and should die.

And finally, while I obviously don't agree w/ RMS that often, I wholeheartedly agree w/ him on this:
http://blogs.computerworlduk.com/open-enterprise/2010/07/richard-stallman-on-net-mono-and-dotgnu/index.htm

Slowness is hardly the concern. Bytecode is a common solution and performs well in a number of interpreted languages. Heck. Even Javascript engines do tricks such as that these days, and javascript performance has become surprisingly fast as a result.
It is the .NET framework that is my objection. That and Microsoft's control of the future of C# are the reason I'll pick pretty much any language/framework over that combo.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

mrboese
User offline. Last seen 6 years 38 weeks ago. Offline
Joined: 2010-12-27
Posts: 22

Quote:
Programming in almost anything is easier than C++.

You're right, but I also have some experience with some other languages (Java, Pascal-Delphi, C-C++, D) and C# is the best language for me, so I will go on using this language, even if there are some difficulties.

Quote:
While the standards that make up .NET are inherently cross platform, Microsoft's full implementation of .NET is only supported on Windows.

You dont have to worry - I'm trying the best to use only the libraries/components, which are supported by Mono, too (OK, the FolderBrowserDialog I'm using needs Shell32, but there is a .NET/Mono-built-in dialog)

Quote:
.NET is just Microsoft's attempt to reassert themselves in a domain they don't belong in, and should die.

Till comma: Maybe - I don't know
After comma: No. Every programming language or framework or sth. else has a reason to "live". If it's bad, nobody will use it anymore -> "die".

Quote:
Microsoft's control of the future of C#

Even if I don't like everything Microsoft (or Micro$oft or M$) did and does, this company is not the satan itself (!!!). But if they would help the Mono dev. team, it would be better (.NET could expand and would fulfill the primary idea of an improved Java).

We will see it in the future - maybe Google or another company creates a new framework and everybody is using it ...

I'm using .NET I'm evil I'm a slave of M$. Yes OK. Fine.

--

Back to the editor: The core element (XML to CFG) can be ported very easy (Copy the classes ThemeDocument, ThemeLandObject and ThemeSprayObject with their submethods).

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]