*
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   News: Check out the latest versions of your favorite mods! Military,VbrosPacks, Megapack, and Dark Magic.
 
  Home Search Login Register  
Pages: [1]
  Print  
Author Topic: Modders get help making new Techtrees and Factions  (Read 190 times)
softcoder
Moderator
Ornithopter
********
Posts: 487


View Profile Email
« on: July 30, 2010, 09:54:22 AM »

Starting with the next version of Mega-Glest (Initial Code already in SVN) we will allow you to run with a special command line parameter to validation your techtrees for known mis-configurations. Example shown below:

Code:
./glest.bin --validate-techtrees

Checking techPath [techs] techName [megapack] factionsList.size() = 6
Found faction [egypt]
Found faction [indian]
Found faction [magic]
Found faction [norsemen]
Found faction [persian]
Found faction [tech]

Errors were detected:
=====================
The Unit [archer] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [crossbow] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [flyingvalkyrie] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [spearman] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [spearman_berzerk] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [swordman] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [swordman_berzerk] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Upgrade Type [training_field] in Faction [norsemen] has no Unit able to produce this upgrade in this faction!
=====================

Checking resources, count = 6
Found techtree resource [energy]
Found techtree resource [food]
Found techtree resource [gold]
Found techtree resource [housing]
Found techtree resource [stone]
Found techtree resource [wood]

Checking techPath [mydata/techs] techName [game_12] factionsList.size() = 6
Found faction [PC]
Found faction [britan]
Found faction [martians]
Found faction [moon]
Found faction [persian]
Found faction [romans]

Errors were detected:
=====================
The Unit [led] in Faction [PC] has no other units that can produce, build or morph into it in this faction!
The Unit [fallen_capsule] in Faction [martians] has no other units that can produce, build or morph into it in this faction!
The Upgrade Type [advanced_architecture] in Faction [romans] has no Unit able to produce this upgrade in this faction!
=====================

Checking resources, count = 11
Found techtree resource [detirium]
Found techtree resource [energy]
Found techtree resource [fish]
Found techtree resource [food]
Found techtree resource [gold]
Found techtree resource [housing]
Found techtree resource [hp]
Found techtree resource [memory]
Found techtree resource [stone]
Found techtree resource [water]
Found techtree resource [wood]

AND when the XML is bad....

******************************************************
    #2 An error ocurred and Glest will close.
Error msg = [Error loading Faction Types: techs/megapack
Error loading units: techs/megapack/factions/tech
Error loading UnitType: techs/megapack/factions/tech/units/blacksmith/blacksmith.xml
The string "castleX" contains a character that is not allowed: "X"
For portability reasons the only allowed characters in this field are: abcdefghijklmnopqrstuvwxyz1234567890._-/]

Please report this bug to contact_game@glest.org, attaching the generated glestv3.3.5.1-alpha3.dmp file.
******************************************************



These validations will grow over time to look for things we discover as known bad entires in the XML files.
« Last Edit: July 30, 2010, 01:24:08 PM by softcoder » Logged
John.d.h
Moderator
Airship
********
Posts: 2339


How we survive is what makes us who we are.


View Profile WWW
« Reply #1 on: July 30, 2010, 11:25:55 AM »

Cool! Thumb Up
Logged

My mods: Dark Magic; Sun and Moon
My online presences: Amway; Youtube; deviantART; Last.fm; ModDB
-Archmage-
Moderator
Airship
********
Posts: 4664


GC - Special Forces


View Profile Email
« Reply #2 on: July 30, 2010, 01:09:40 PM »



Romans is definitely going to be a MegaGlest mod! Cheesy
Logged

Hey there bot! Got my crosshairs on your head, step away slowly and say your prayers....... Mad Scientist
ultifd
Airship
********
Posts: 2625


The Glest Video Man :) The one and only. :P


View Profile WWW Email
« Reply #3 on: July 30, 2010, 01:53:49 PM »

Thanks softcoder, this will be helpful for modders.  Thumb Up

But for Norsemen, we should not forget to tell titi about the Norsemen faction, since it was only temporarily fixed...
Because why should other factions, almost all, have to have the training field upgrade but Norsemen does not...a temp fix is OK and good but not if it can be actually fixed...
« Last Edit: July 30, 2010, 02:31:41 PM by ultifd » Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Glest theme by Omega. Based on Diablos3 theme by Vaun using media by Josepzin.
Valid XHTML 1.0! Valid CSS!