Author Topic: Ruleset list order for TFTD  (Read 5799 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1625
  • The Gate is open.
    • View Profile
Ruleset list order for TFTD
« 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)), but for TFTD?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Ruleset list order for TFTD
« Reply #1 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)), 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.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8595
    • View Profile
Re: Ruleset list order for TFTD
« Reply #2 on: December 01, 2016, 07:31:28 pm »
TFTD list attached.
Enjoy.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Ruleset list order for TFTD
« Reply #3 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

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: Ruleset list order for TFTD
« Reply #4 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!
« Last Edit: December 01, 2016, 08:31:41 pm by Arthanor »

Offline Nord

  • Commander
  • *****
  • Posts: 1625
  • The Gate is open.
    • View Profile
Re: Ruleset list order for TFTD
« Reply #5 on: December 01, 2016, 08:02:11 pm »
Marvelous! Thank you.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8595
    • View Profile
Re: Ruleset list order for TFTD
« Reply #6 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.

Offline Nord

  • Commander
  • *****
  • Posts: 1625
  • The Gate is open.
    • View Profile
Re: Ruleset list order for TFTD
« Reply #7 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?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8595
    • View Profile
Re: Ruleset list order for TFTD
« Reply #8 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

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Ruleset list order for TFTD
« Reply #9 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

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Ruleset list order for TFTD
« Reply #10 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?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8595
    • View Profile
Re: Ruleset list order for TFTD
« Reply #11 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?
« Last Edit: December 02, 2016, 12:06:35 am by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Ruleset list order for TFTD
« Reply #12 on: December 04, 2016, 06:21:58 pm »
Thank you, this should facilitate things.

EDIT:

Ta-dam!

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Re: Ruleset list order for TFTD
« Reply #13 on: December 04, 2016, 06:37:18 pm »
Nicely done! Kudos and interwebz cookies, as promised.