EdS v0.9 BugFix 3

EdS v0.9 BugFix 3

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

EdS v0.9 BugFix 3

Post by PauloMorfeo »

Image
Sucess! At last, my greatest creation is compleeete cause i, Paulo, boy geeenius .. Joana, get out of my secret computer!

Done an effort to bring a first usable version berofe the end of the weakend and version 0.9 of the mod editor "Editor Spring" (EdS) is here!
Download it here:
http://www.fileuniverse.com/?p=showitem&ID=2856
Wiki page here:
http://taspring.clan-sy.com/wiki/EdS
The wiki documentation is still miserable...

Of the many goals that made me do this program, all of them are acomplished except the program beeing good and very usefull. I must go back to job searching frenzy so, be sure to ask for features and bug fixes before i manage to get a job or lose interest.
Last edited by PauloMorfeo on 14 Apr 2006, 17:17, edited 4 times in total.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

I've succesfully managed to import the mod Uberhack from files to my program and export it back to files and play the game with that version.
As i say in the wiki, there is a problem with XTA
The mod XTA_se has, in the weapons definitions, reference to the weapons dealing specific damage to ARMBRAWL. It should be referencing a class on units from the file Armor.txt but it does not, it references one unit inside one of those classes. The program will not handle this. So, if you want to mess around with the mod XTA (the most common one), you will have to fix that before importing it or after. ...
So i din't even tried it (apart from importing and messing around with it).
I also tried AA. Uncompressed the files in the larger package and used the file Sidedata.tdf from one of the other files. For some reason, it didn't seemed to work (at least, loby didn't recognized it).

I must haste to go to bed so i'll talk more later. There are a few things which i'm thinking of improving.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

Request for help from experienced mod makers:
When you have, for example, a unit and try to add a new field (tag), it will search a list of names for the field and if they do not exist, it will propose them. It would be helpfull if someone would provide a nice list of those.

They can be found in the file Configs/configs.xml. It is just a plain text file.
The lists are in this format:

Code: Select all

<ListaNomesUnidade>
    <string>name</string>
    <string>buildtime</string>
    <string>armor1</string>
    <string>armor2</string>
    <string>ListaNomesUnidade</string>
  </ListaNomesUnidade>
This example means that, whenever adding a field to a unit, it will propose, if not already there, "name", "buildtime", "armor1", "armor2" and "ListaNomesUnidade".

The sections are these:
<ListaNomesUnidade>
- List on tags for units

<ListaNomesArmas>
- List of tags for weapons

<ListaNomesClasses>
- List of tags for Classes of units (armor.txt) (useless since Classes of units do not have tags)

<ListaNomesLados>
- List of tags for sides in Sidedata

<ListaNomesMovims>
- List of tags for movement classes

<ListaNomesSons>
- List of tags for sound classes

<ListaNomesInfosMod>
- List of tags for mod informations
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

can't get it to work

I installed Mono 1.1.13.4 for Windows

and made .mono files to be run with that

but when i click it notting happens :(

BTW i don't hav a SQL server as i don't know how to set one up :)
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

NOiZE wrote:can't get it to work

I installed Mono 1.1.13.4 for Windows

and made .mono files to be run with that

but when i click it notting happens :(

BTW i don't hav a SQL server as i don't know how to set one up :)
That is odd :?
Try doing "Start"->programs->mono*->Applications->Prj2Make# Gtk
That is a simple application that comes with mono which is usefull to test if mono is running ok.

If the test window shows ok, try running the program like this:
Open a command line of mono
"Start"->programs->mono*->mono* Command Prompt
In there Change Directory (CD) into where the program is and run the executable

Code: Select all

mono EditorSpringGUI.exe.mono
That way, if it fails something, it should output the errors into the command prompt so i can try and figure out what is wrong.
I really wish that mono registered .mono files to itself. I even contacted them in the mailing list about that and they said no... The reasons don't make any sense to me but...



It «works» without having MySql installed. But you will not be able to edit mods and stuff.
To install MySql, dowload it here:
http://dev.mysql.com/downloads/mysql/5.0.html
Scrool down to the Windows section, download it, unzip it, install it with all default options, should be working out of the box with the standard configuration that EdS has.
User avatar
diggz2k
Posts: 208
Joined: 04 Mar 2005, 06:34

Post by diggz2k »

D:\DOCUME~1\mike\Desktop\EdSv0.9>mono editorspringgui.exe.mono

** (editorspringgui.exe.mono:1700): WARNING **: The following assembly reference
d from D:\DOCUME~1\mike\Desktop\EdSv0.9\editorspringgui.exe.mono could not be lo
aded:
Assembly: gtk-sharp (assemblyref_index=1)
Version: 2.4.0.0
Public Key: 35e10195dab3c99f
The assembly was not found in the Global Assembly Cache, a path listed in the MO
NO_PATH environment variable, or in the location of the executing assembly (D:\D
OCUME~1\mike\Desktop\EdSv0.9\).


** (editorspringgui.exe.mono:1700): WARNING **: The class Gtk.Window could not b
e loaded, used in gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35
e10195dab3c99f

** (editorspringgui.exe.mono:1700): WARNING **: Missing method Init in assembly
D:\DOCUME~1\mike\Desktop\EdSv0.9\editorspringgui.exe.mono, type Gtk.Application

Unhandled Exception: System.TypeLoadException: Could not load type 'Gtk.Window'
from assembly 'gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10
195dab3c99f'.
in <0x00000> <unknown method>
in <0x00017> EditorSpringGUI.Principal:Main (System.String[] args)
User avatar
diggz2k
Posts: 208
Joined: 04 Mar 2005, 06:34

Post by diggz2k »

Perhaps you should ship the gtk runtimes with the porgram and have it point to them...

I don't know anything about coding or how to install the gtk runtimes myself

EDIT I installed the gtk sharp stuff and... crap have to go to work in 2 min... and need to install .net framework 1.1 bah no time, I'll check back after work.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

diggz2k wrote:...
The assembly was not found ...
diggz2k wrote:Perhaps you should ship the gtk runtimes with the porgram ...
You did a good guess. That leads to thinking that it doesn't have the Gtk# dll installed.
However, the windows installer (you used the Windows installer, i supose?) is unique and it comes with Gtk# in it, not even having an option for installing mono without Gtk#...

I'm really clueless as to how that might be happening. :(
And i would guess that NOIZE had the same problem.
I will send a mail to the mono mailing list and ask about it. The mailing list is very active and i should get a answer quite fast.

Anyway, don't install .NET or Gtk# for .NET. At least not because of this. Mono simulates .NET but works independant of it.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

gives me this:

Code: Select all

** (EditorSpringGUI.exe.mono:3108): WARNING **: The following assembly reference
d from C:\Documents and Settings\xxxx\Bureaublad\EdSv0.9\EditorSpringGUI.exe.mo
no could not be loaded:
     Assembly:   gtk-sharp    (assemblyref_index=1)
     Version:    2.4.0.0
     Public Key: 35e10195dab3c99f
The assembly was not found in the Global Assembly Cache, a path listed in the MO
NO_PATH environment variable, or in the location of the executing assembly (C:\D
ocuments and Settings\xxxx\Bureaublad\EdSv0.9\).


** (EditorSpringGUI.exe.mono:3108): WARNING **: The class Gtk.Window could not b
e loaded, used in gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35
e10195dab3c99f

** (EditorSpringGUI.exe.mono:3108): WARNING **: Missing method Init in assembly
C:\Documents and Settings\xxxx\Bureaublad\EdSv0.9\EditorSpringGUI.exe.mono, typ
e Gtk.Application

Unhandled Exception: System.TypeLoadException: Could not load type 'Gtk.Window'
from assembly 'gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10
195dab3c99f'.
in <0x00000> <unknown method>
in <0x00017> EditorSpringGUI.Principal:Main (System.String[] args)
Last edited by NOiZE on 07 Apr 2006, 19:20, edited 1 time in total.
mongus
Posts: 1463
Joined: 15 Apr 2005, 18:52

Post by mongus »

I get exactly the same.

Also ive tried to install the gtksharp-2.4.0-win32-0.1.exe

but it complains i dont have the sdk, which is a lie, as its installed, in spanish, but installed, wonder if its the lenguage.

I will give it a try with .net 2 and the sdk for that version aswell, (just finshed dld 300+MB!!), but i doubt the damned gtksharp-2.4.0-win32-0.1.exe installer will work.

so far thats is all my testing.

also i found a post... ??..
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

[edited out]

Ok tracked down the problem...
I have mono 1.1.13.2
You are downloading mono 1.1.13.4

Beeing the main problem that the 1.1.13.2 has Gtk# 2.4 (the one my program uses) and 1.1.13.4 has Gtk# 2.8.
I would have never have guesses that between such minor versions compatibility would be broken.
....
I'm freaking pissed with them :evil: and i'll sure let them know through the mailing lists.

And i'm sorry for the time you guys lost and for the frustration.
Anyway, all is not lost. You instalations of mono will still be usefull for my next work-around version of the program.

I will ship it with the dlls for Gtk 2.4.
mongus
Posts: 1463
Joined: 15 Apr 2005, 18:52

Post by mongus »

oh.. took too long.. but look at the proof.

Image

ehm.. that gtk 2.4 you are shiping aint the one i cant install is it?

e:well its good anyhow, i will try installing the old mono :)

e2:cheezz.. fugzing hard to find.

http://www.mono-project.com/OldReleases
e3:
8)
Image

cant connect to sql server yet but who needs that :D

e4: aigth, now its connected, remember to:

press config

then change the account to access the sql database and write the password!

then close without further attempts.. (i guess)

then run again and it works.

e5:

hm.. to load a mod data, its seems you need to uncompress the hole mod to some dir, and then try to load.

In other words it wont work with the compressed files.
Last edited by mongus on 27 Mar 2006, 06:21, edited 1 time in total.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

mongus wrote:...
ehm.. that gtk 2.4 you are shiping aint the one i cant install is it?
...
That stand-alone Gtk# installer for Window you can find in the downloads page, is for adding the Gtk# libraries to .NET, not mono (since mono already comes with Gtk#).
That is so, so we can develop and run applications for .NET with the Gtk# grafical library.

I tried running my application in .NET+Gtk# but it doesn't work (failed miserably so i haven't even tried it again). It would have been nice since some of you must have already got .NET installed and the executable for .NET are .exe files who just find out who it needs to execute then, you not having to search for the mono executable.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

Ok, finally some screenshots. This way, you can see what some of the strengths of the program are.

Image
The configurations menu. You start here.
It should allow you to use a mysql server, for example, in the internet as a team effort to edit a mod. Although, performance wise it may be awefull (haven't tested it).

Image
Easily manage databases. Create new, get rid of old ones. If accessing as root, be sure not to delete the databases of MySql itself :P.

Image
In the editing menu, the Import / Export sub-menu. As Mong said, one of the program's limitations is that it doesn't work on compressed mods, needing the mod to be uncompressed on a folder. In here, you choose what directory you are working on for importing a mod or for exporting it.

Image
The editing sub-menu "mod informations". This list will be the one stored in Modinfo.tdf.
As you can see, it allows you to add tags at will, not beeing restricted to the tags currently existing.
You can see one of the fields (tags) marked as number. In numbers, use "." or "," acording to what your operating system uses. In the mod, it always gets stored as ".".

Image
Editing of Sides. This stuff will go to Sidedata.tdf. In the "relations" section, you can choose the side comander. This enforces consistency, making sure you don't misspel the comander's name or something. And it is easy.

Image
The editing of units. Units are the base-fields with the more relations. I am only showing them and still it doesn't fits all of them. From here, you can choose what side the unit belongs to, which movement class it has (or none), etc. You can assign it and remove from lists of weapons, list of classes it belongs to (Armor.txt) and units it builds.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

This is not forgoten, for sure.

I'm waiting for some answers to find out how to ship my program in a way that it makes sure that it will find Gtk# 2.4. I could make the program run in the most recent version of mono but, as soon as another incompatible version came out, i would be running into same problem.

Also, as Mong and i confirmed (thanks for the testing, Mong), MySql is having some issues. Default instalation of MySql 5.0 seems to be working limited at a traffic of 9.2 KB/s of data in both of our PCs (where MySql 4.0 reaches 800 in my weakely PC) making so that importing and loading of mods takes forever. 4.1 also shows weird behaviour, running slow for a while then fast as expected...

I wasn't expecting this kind of problems to occur since they aren't exactly the fault of my program... Still, i'm working on giving those issues a work around.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

Looking forward to it :-)
User avatar
diggz2k
Posts: 208
Joined: 04 Mar 2005, 06:34

Post by diggz2k »

Paulo, were you going to make a ready out of the box distribution so we more simple minded folk wouldn't have to work?
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

New version, 0.9 - BugFix 1!
http://www.fileuniverse.com/?p=showitem&ID=2856
Use this one instead of the older one.

New features:
- Added 3 translations. Dutch, Finish and French.

Very Minor Bug fixes:
- Renamed executable to EditorSpring.exe.mono as it was suposed to be.
- Decreased number of logs. (it was loging every insert or update which made a 4MBs log in a simple import of a big mod)

Workarounds:
- The apply button, when changes are not saved, now also gets an added "*" because in some window managers (like the default one on WinXP) it didn't changed colour warning about changes not stored.
- This new version is compiled with mono 1.1.13.4, which uses Gtk# 2.8.

It has been tested succesfully in Windows in mono 1.1.13.4, mono 1.1.13.6, mono 1.1.14 and in the experimental installer of mono 1.1.13 of Novell.
It will not work with previous versions of mono which use Gtk# <2.8, of course, which include mono 1.1.13.2, which was what i originally used. But i think that everyone installed mono *.4 (with the exception of Mong's testing with *.2).

Issues:
MySql!!!
In 4.0, «MySql Administrator» shows my Duron 1300 having peaks of 200 queries per second, taking 2 mins to import all the information in a mod.
In 4.1, it doesn't seems to go more than 70 queries per second.
MySql 5.0, however, doesn't seems to pass 1 freaking query per second...
This with default instalations.
I've been searching hard and annoying everyone on several mailing lists. I can't figure out what is the problem with mysql 5.0. There doesn't seems to be anything configured that should produce that result...

So, i warn that mysql 4.1 produces slower performance and 5.0 produces totaly unaceptable performace with a default instalation.
If anyone uses another version without these slowdowns, i would apreciate help in what configurations they have made.
I think i will make a thread exampling how to install mysql 4.0 on windows, when i manage to install a fresh Windows install. Since the instalation is not the standard «run the obvious executable», if anyone feels like waiting for that, say so so i know the urgency of such thread.
Last edited by PauloMorfeo on 07 Apr 2006, 18:22, edited 3 times in total.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

diggz2k wrote:Paulo, were you going to make a ready out of the box distribution so we more simple minded folk wouldn't have to work?
You have already tried the program. Care to explain what dificulties you felt? Kind of, what would you like diferent?
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

personally i would like to not need any other programs!

So NO MySQL NO mono NO whatever

:-)
Post Reply

Return to “Game Development”