OpenXcom Forum

Modding => Work In Progress => Topic started by: Nord on December 01, 2016, 06:16:55 pm

Title: Ruleset list order for TFTD
Post by: Nord on December 01, 2016, 06:16:55 pm
Someone has seen maybe ruleset list order not for xcom1 (like https://www.ufopaedia.org/index.php/Ruleset_List_Order_(OpenXcom) (https://www.ufopaedia.org/index.php/Ruleset_List_Order_(OpenXcom))), but for TFTD?
Title: Re: Ruleset list order for TFTD
Post by: Solarius Scorch on December 01, 2016, 06:47:37 pm
Someone has seen maybe ruleset list order not for xcom1 (like https://www.ufopaedia.org/index.php/Ruleset_List_Order_(OpenXcom) (https://www.ufopaedia.org/index.php/Ruleset_List_Order_(OpenXcom))), but for TFTD?

No way I'm doing this again. :P But if anyone wants to, just check the original ruleset and the item order there - it should start with 100 and each new one increases the number by 100.
Title: Re: Ruleset list order for TFTD
Post by: Meridian on December 01, 2016, 07:31:28 pm
TFTD list attached.
Enjoy.
Title: Re: Ruleset list order for TFTD
Post by: Solarius Scorch on December 01, 2016, 07:50:25 pm
TFTD list attached.
Enjoy.

You somehow did it automatically, didn't you? :P

Cheater! No appreciation for fine handiwork of the uneducated! :P
Title: Re: Ruleset list order for TFTD
Post by: Arthanor on December 01, 2016, 07:58:48 pm
Hey! It's hard work to learn how to do things efficiently! And while you do that learning, you're not doing any actual work either (or might be doing work slower than the brute force...). Well done Meridian!

Now Solarius, if you want to make yourself useful, go and put it up on the wiki. We'll appreciate the hard manual work involved, I promise!
Title: Re: Ruleset list order for TFTD
Post by: Nord on December 01, 2016, 08:02:11 pm
Marvelous! Thank you.
Title: Re: Ruleset list order for TFTD
Post by: Meridian on December 01, 2016, 08:02:20 pm
Sometimes difficult-looking things are easy...
... and easy-looking things are close to impossible.

But yeah, I wrote about 30 lines of code, give or take, to produce this output.
Title: Re: Ruleset list order for TFTD
Post by: Nord on December 01, 2016, 08:52:50 pm
I think "ruleset reference" page is more complicate to rewrite. But as i see, there is not much differences between xcom1 and tftd in this part. Things like "projectile type" etc are the same. Just other names (laser-gauss, etc). Am i right?
Title: Re: Ruleset list order for TFTD
Post by: Meridian on December 01, 2016, 09:06:54 pm
xcom and tftd use identical ruleset (values might have different translations where applicable, but names and types are the same), no need for separate pages... nightly ruleset reference would deserve an update tho, it's pretty outdated
Title: Re: Ruleset list order for TFTD
Post by: Solarius Scorch on December 01, 2016, 11:41:49 pm
Now Solarius, if you want to make yourself useful, go and put it up on the wiki. We'll appreciate the hard manual work involved, I promise!

Burn! :P

I wish I could, but I would have to crack the problem on how to convert it from .txt... And I totally forgot how Excel did column separation. I remember it was stupid. :P
Title: Re: Ruleset list order for TFTD
Post by: ohartenstein23 on December 01, 2016, 11:49:10 pm
Put commas where you want column breaks (replace all helps), rename file to .csv, import to excel?
Title: Re: Ruleset list order for TFTD
Post by: Meridian on December 02, 2016, 12:03:48 am
Put commas where you want column breaks (replace all helps), rename file to .csv, import to excel?

2/ or replace the spaces with tabs, put into clipboard and paste into excel

3/ or just copy into excel, select first column and click on "text to columns" icon and use a wizard

PS: ...and that's what happens to you kids, when you stop coding... you start using excel :/ how did this happen to me?
Title: Re: Ruleset list order for TFTD
Post by: Solarius Scorch on December 04, 2016, 06:21:58 pm
Thank you, this should facilitate things.

EDIT:

Ta-dam! (https://www.ufopaedia.org/index.php/Ruleset_List_Order_(OpenXcom_TFTD))
Title: Re: Ruleset list order for TFTD
Post by: Arthanor on December 04, 2016, 06:37:18 pm
Nicely done! Kudos and interwebz cookies, as promised.