[REJOICE] Mod switcher with graphical user interface! - Page 2

[REJOICE] Mod switcher with graphical user interface!

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

jouninkomiko
Posts: 436
Joined: 26 Aug 2004, 08:11

Post by jouninkomiko »

just a note: C# is exactly equivalent to vb.net, with the exception of syntax. that is, there exists a simple converter from C# -> vb.net and vice versa that upon compilation, generates the exact same code. that's why vb.net is not equivalent to vb, which had its own runtime and everything (and sucked). so, take your pick of either, i personally prefer c syntax, so i picked that.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

XML-definable mod definition would be nice... everything's better with XML.
User avatar
Cheery
Posts: 129
Joined: 09 May 2005, 10:30

Post by Cheery »

mongus wrote:Edit: now i installed the program...
I think it works as i described it, but....
my files ended at C:\Program Files\TASpring\
and not in C:\Archivos de programa\TASpring\
where they should... i think you need to use a system variable... (like %sysroot%) dunno its name.
e: its %PROGRAMFILES%, not sure if can (or how) be used un command prompt.
Hmm. Myself I used folder E:\TASpring\ and runned the program in the specific folder, it worked as it should.
E: also, it seems pathfinding is redone for each set of units. wich means this program should enable-disable specific path files (*.pt) to each mod.
the current map universe has a path archive around 250 Mb (that is all path archives for every map out there).
I cannot find .pt files from my TASpring folder, maybe they are something new stuff my version doesn't have, I installed it 8.5.2005.

I'll try to solve the issues you found out.

Dragon45 wrote:XML-definable mod definition would be nice... everything's better with XML.
Then, Could you point some resources for parsing xml files?

I wouldn't like to reinvent the method how to read xml files.

If you'd do that, I could try one kind of thing which searches the xml files from the program folder and translates them for modman so you could use them to switch mods. Thought this begins to go irrelevant and unnecessary.

Myself I'm not a big fan of XML, you are right thouhgt, they could be better with configurations.
mongus
Posts: 1463
Joined: 15 Apr 2005, 18:52

Post by mongus »

The game path thing is not due to your program, sorry.
Its a problem, i think, in the AA installer.
(i had installed AA before, but i forgot that).

About the *.pt files, well its my error too, didnt check the extension.
Its *.pe and *.pe2 files that belog to path calculation i think.
Cheery wrote: I'll try to solve the issues
Great!
User avatar
Cheery
Posts: 129
Joined: 09 May 2005, 10:30

Post by Cheery »

Huh! There are a complete list of these .pe -files. Maybe next could help quickly, I think we could get better solution, but this can be it now,

first, you do two folders, XTAmaps and AAmaps,
then you add them into parameters and tell it they both are maps -folder when enabled. Now you should have what you wanted.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

jouninkomiko wrote:just a note: C# is exactly equivalent to vb.net, with the exception of syntax. that is, there exists a simple converter from C# -> vb.net and vice versa that upon compilation, generates the exact same code. that's why vb.net is not equivalent to vb, which had its own runtime and everything (and sucked). so, take your pick of either, i personally prefer c syntax, so i picked that.
Wow, didn't know there was a big difference between VB and VB.net. Thanks for the information. The things people don't learn in college. THANKS :).
mongus
Posts: 1463
Joined: 15 Apr 2005, 18:52

Post by mongus »

what i wanted plus 528Mb and counting. :lol: :roll:
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

smoth wrote:
jouninkomiko wrote:just a note: C# is exactly equivalent to vb.net, with the exception of syntax. that is, there exists a simple converter from C# -> vb.net and vice versa that upon compilation, generates the exact same code. that's why vb.net is not equivalent to vb, which had its own runtime and everything (and sucked). so, take your pick of either, i personally prefer c syntax, so i picked that.
Wow, didn't know there was a big difference between VB and VB.net. Thanks for the information. The things people don't learn in college. THANKS :).
VB.NET has tons of object oriented additions to the syntax. The one cool thing about C# and VB.NET is that implimenting scripting languages is a breeze. There is a built in system for doing it in the API. 8)
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

eww - cpp gui code.

Post by Pxtl »

Mother of god I forgot how ugly Windows GUI code was in CPP. Really, I don't see why you avoid VB (or any other RAD tool, IE Python, .NET, etc.) for coding such simple gui apps.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Post by Pxtl »

Dragon45 wrote:XML-definable mod definition would be nice... everything's better with XML.
No, everything is not better with xml. XML is over generalised for what it's used for. 99.9% of the applications I've seen of XML would be just as easy with an old-fashioned .INI file, and yet the XML is 10x as verbose, as well as the handling code.

For example, besides xhtml, have you ever see anyone use mixed tags? No? Then why the distinction between body and attributes? Alternately, can you explain why closing tags are so verbose? When other languages can close a block with a single character, XML requires three characters and a keyword.

XML is the computing industry being too lazy to develop intelligent standards so that the typographic industry shoves them into one that is overly clumsy for normal uses.

Half of the people I see using XML end up just having every tag just have a single attribute "value". That's a sign that something's wrong. In the end, people just code half-assed XML schemas just to satisfy the fact that all their apps work with XML.

I love how people call it "human readable". Just because it's plain text doesn't mean it's legible. It's fugly.

/rant.
User avatar
[K.B.] Napalm Cobra
Posts: 1222
Joined: 16 Aug 2004, 06:15

Post by [K.B.] Napalm Cobra »

I'm looking into changing from win32 GUI code to wxWidgets, using wx-DevC++.
User avatar
Cheery
Posts: 129
Joined: 09 May 2005, 10:30

Re: eww - cpp gui code.

Post by Cheery »

Pxtl wrote:Mother of god I forgot how ugly Windows GUI code was in CPP. Really, I don't see why you avoid VB (or any other RAD tool, IE Python, .NET, etc.) for coding such simple gui apps.
Well, windows is ugly... :lol:
MFC is totally screwed up possibility.

Windows code is ugly too because it's not redesigned since the windows 95.

They are doing something for it when they release the longhorn, but I believe I have been switched my user interface to something more elegant before they get a releaseable version out from it.

I don't feel VB or IE Python, .NET or any other library is so good for something else. With c++ I can make it work just as I want.

But if I would be asked how I'd design the gui code for OS. I would first say that I'd remove that postmessage solution and switch it into a simpler solution which works both for games and editor applications.
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

[K.B.] Napalm Cobra wrote:I'm looking into changing from win32 GUI code to wxWidgets, using wx-DevC++.
http://visualwx.altervista.org/

Use that, it will save you time. If you are using Linux, use wxGlade.

These apps generate the GUI code for you, so that you don't have to hand-code it yourself. Plus wxWidgets code is very portable. You don't have to "#include <windows.h>". =)
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

I'm surprised with all of this talk about cross-platform comptability and GUIs and such, no one has mentioned Java. I am (re)learning it and it seems as if its quite suitable to the needs of the this side-project.
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

People have mentioned java, but I don't care for it much. I would rather learn python myself.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

meh. Keep thyself tuned.

Image
(Click for larger image)
User avatar
[K.B.] Napalm Cobra
Posts: 1222
Joined: 16 Aug 2004, 06:15

Post by [K.B.] Napalm Cobra »

Bastard.
User avatar
Ace07
Posts: 348
Joined: 21 Apr 2005, 20:46

Post by Ace07 »

Well you will just have to compete now....its the only way...

To the death of course.... (is there any other way?)
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

It *should* be automatically cross-platform, since it is, after all, Java. However, i will have to delve a little deeper into Java's file handlers to determine if the usage between platforms will be seamless in terms of file and directory manipulation. Although there's no reason why it should not be.


And hell, why not throw in a little Python parser for the mutators... unless someone has a better idea for the mutator scripting language...
Post Reply

Return to “General Discussion”