avatar Simple ArmyCalc Ruleset Builder
January 14, 2010 07:20PM
I've created a tool to let others build Rulesets by creating two CSV files uses Excel or any text editor. It is called armycalc-twr-builder and the code is located on GitHub at the following url: [github.com]

It is working 100% right now as far as I can tell. I am personally working on WH40K 5E Space Wolves as a sample. If others would like to try their hand at making an army, checkout the documentation on GitHub. You'll need to create a simple config file and two CSVs. If you don't know how to run the run script, I can do that for you.



Edited 3 time(s). Last edit at 01/15/2010 12:25AM by semmons99.
avatar Re: Simple ArmyCalc Ruleset Builder
February 23, 2010 06:28AM
Hi Shane!

What you are doing for an example is exactly what I need. I got the stuff from github, but when I try and run rake commands on my Snow Leopard mac I am getting an error:

$ rake build CONFIG=example/wh40k-5e-space-wolves.yaml
(in /Users/ken/Desktop/semmons99-armycalc-twr-builder-329aabb)
rm -r tmp
rm -r twr
script/generate.rb:1:in `require': no such file to load -- haml (LoadError)
from script/generate.rb:1
rake aborted!
Command failed with status (1): [ruby script/generate.rb example/wh40k-5e-s...]
/Users/ken/Desktop/semmons99-armycalc-twr-builder-329aabb/rakefile:9
(See full trace by running task with --trace)

What am I doing wrong? I unfortunately have no experience with Ruby. My programming experience ends with FORTRAN... winking smiley
avatar Re: Simple ArmyCalc Ruleset Builder
February 23, 2010 02:19PM
There's two required libraries (ruby calls them gems) that you need to install. Run the following commands and you should be all set.

gem install haml
gem install archive-tar-minitar
avatar Re: Simple ArmyCalc Ruleset Builder
February 24, 2010 06:17AM
Thanks! Finally got it working. Also had to add require 'rubygems' to the scripts.
avatar Re: Simple ArmyCalc Ruleset Builder
February 24, 2010 02:05PM
Actually, the easiest way to avoid that is to set an environment variables.
set RUBYOPT=-rubygems
avatar Re: Simple ArmyCalc Ruleset Builder
May 14, 2010 10:06PM
I found a couple things with your script:

It requires the 'fastercsv' gem.
rake generate would work, but rake build would not until I added require 'yaml' to build.rb
avatar Re: Simple ArmyCalc Ruleset Builder
May 15, 2010 01:11AM
Thanks for catching these. I'll try and fix them Monday morning when I get back to my computer.
avatar Re: Simple ArmyCalc Ruleset Builder
May 16, 2010 07:39AM
I forked your project on github and have committed several changes:
- Updates to README
- Bugfix I reported above
- Added support for unit images
avatar Re: Simple ArmyCalc Ruleset Builder
May 16, 2010 02:03PM
Great! I've applied your changes. If you would like to include your Necrons in the project, feel free to add them and I'll pull in your changes again.
avatar Re: Simple ArmyCalc Ruleset Builder
May 17, 2010 08:34AM
Updates today:
Refactored directory structure to organize data file projects
TML files are now output at the same path as the config file.
Added revision, validator, hiddenattrs properties to config & updated info.haml and units.haml to use them

hiddenattrs are additional fields in the units.xml that do not display on the stat line

Started work on Necron army validation rules.
avatar Re: Simple ArmyCalc Ruleset Builder
May 17, 2010 01:28PM
I added you as a contributor to the project on Github so that you can commit directly to it.
avatar Re: Simple ArmyCalc Ruleset Builder
August 22, 2010 12:13AM
Maybe these WFB8 informations could be add to CVS files

AB3
[www.datafilecentral.com]

AB2
[games.groups.yahoo.com]

--
Dreadaxe
French T³ admin
avatar Re: Simple ArmyCalc Ruleset Builder
November 28, 2010 01:56PM
I don't understand how use the file...
I download Ruby... And after...

--
Dreadaxe
French T³ admin
avatar Re: Simple ArmyCalc Ruleset Builder
January 02, 2011 06:09PM
I must admit that I don't understand how to make those things work correctly ...
I've downloaded ruby and installed it. I've also downloaded haml, archive-tar-minitar and fastercsv and use the install command under ruby but the "add RUBYOPT" doesn't work and I don't know why ...
avatar Re: Simple ArmyCalc Ruleset Builder
January 02, 2011 07:48PM
Honestly, without programming knowledge, my ruleset creator is probably too hard. I'm trying to work on something to make it easier. But currently, it's just not practical.
Sorry, only registered users may post in this forum.

Click here to login

© 2009,2010 FSW; almost valid XHTML; generated in: 0.03s;