.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   You can't grep dead trees. (http://forum.shrapnelgames.com/showthread.php?t=32308)

B0rsuk December 12th, 2006 06:50 PM

You can\'t grep dead trees.
 
1 Attachment(s)
I finished the basic version of necronomicon file. It contains all common spells of all schools (531), but not national ones. Columns: paths(primary first), spell name, research level, research school, battle/ritual.

I tested it with my spellbook script and with the following command:

<font class="small">Code:</font><hr /><pre>egrep -v '(F|W|A|E|S|D|N|B)* [^ ]* [0-9] (Conjuration|Alteration|Enchantment|Construction|H oly|Thaumaturgy|Evocation|Blood_Magic) (battle|ritual)' necronomicon</pre><hr />

...but it's not a perfect way, I'm afraid. It found two typos (Conuration, Enchantmen) so there could be more. Please report if you find any. It was a very tedious work, and I occasionaly caught myself writing wrong spell levels or battle instead of ritual (or vice versa).

Dust off your regular expression skills and have some fun ! Also check following linux commands: egrep, awk, wc, diff, sort, uniq, cut, cat, and cowsay. The last one is not installed by default.
And don't forget to praise me.

ToDo:
- national spells
- additional columns: number of effects, range, area of effect, duration, underwater/surface/anywhere, spell type, damage, and other boring stuff.

Evil Dave December 12th, 2006 10:59 PM

Re: You can\'t grep dead trees.
 
Excellent! Thanks, B0rsuk!

Uh-Nu-Buh December 12th, 2006 11:43 PM

ANNOUNCEMENT: B0rsuk is new Prophet
 
I hereby announce to the world that B0rsuk, greatest Hero in the world, slaughterer of the beast, Sorceror of the Necronomicon, is the Prophet of Uh-Nu-Buh.

Good work, my dark jedi.

This will make a lot of people in the mod section happy too, so make sure you post a link to it there as well!!

UninspiredName December 12th, 2006 11:47 PM

Re: ANNOUNCEMENT: B0rsuk is new Prophet
 
Are prophets allowed to have such long titles?

Uh-Nu-Buh December 12th, 2006 11:54 PM

Re: ANNOUNCEMENT: B0rsuk is new Prophet
 
Mine are. Don't worry, UninspiredName, you can be my next prophet (after B0rsuk gets smashed by one of my numerous enemies on the forum, we'll have to wait a few turns, then I will make the announcement.)

HoneyBadger December 13th, 2006 04:54 AM

Re: ANNOUNCEMENT: B0rsuk is new Prophet
 
B0rsuk, to properly honor you, I shall wear the icon you so generously gifted me, just as soon as I get around to equipping it, lazy fat procrastinator that I am.

thank you again!

tibbs December 13th, 2006 01:51 PM

Re: ANNOUNCEMENT: B0rsuk is new Prophet
 
I'm a little confused as to the purpose of this. What do I do with it?

PDF December 13th, 2006 02:20 PM

Re: ANNOUNCEMENT: B0rsuk is new Prophet
 
1 Attachment(s)
It's a plain text file, for us Windoze users I've put it in Excel format, much more practical http://forum.shrapnelgames.com/images/smilies/wink.gif

Edi December 13th, 2006 03:05 PM

Re: ANNOUNCEMENT: B0rsuk is new Prophet
 
Looks good. Since stealing that outright would be bad manners, do I have permission to swipe this for use in the Dom3 DB project if I decide to do spells as well?

Edi

B0rsuk December 13th, 2006 03:25 PM

Re: ANNOUNCEMENT: B0rsuk is new Prophet
 
You're allowed to do that, but keep in mind I'll add more columns and spells (national) in future. You may have additional work to do later if you use it now.


All times are GMT -4. The time now is 01:44 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.