aliens

Author Topic: [TFTD] [Expansion] TWoTS+ Release (v.2.63.1)  (Read 878835 times)

Offline murkhach@centrum.cz

  • Captain
  • ***
  • Posts: 59
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.62) Yacht & Container Variety
« Reply #2235 on: December 16, 2024, 07:26:14 pm »
Hi I experimented  with enemy spawning.
  In first published  maps  I tried to manually set routes spawning ranks and patrol priorities.
  This make map interesting for first play, however after several times becomes stereotype and routine.
 
 So I wrote a simple  console app in .NET  that as argument accepts FILE 
  ( IE "XCOM Routes Randomizer.exe" d:\Documents\OpenXcom\xcom2\Yacht00.RMP )

1.)  It counts number of nodes for each rank and then
2.)  Sets spawning and patrolling priorities for all nodes to 1
3.)  Shuffles node ranks (Omits X-COM & Terrorist 2 )
4.)  Saves new file as .RMPX

Because my maps contains just one block,  it is easy  adjust terrains rule, that  when mission is created, then the block is picked randomly. So variety seems more rich then before.

ENJOY and share your feedback
 

   
 
 

Offline Nord

  • Commander
  • *****
  • Posts: 1754
  • The Gate is open.
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.62)
« Reply #2236 on: December 17, 2024, 08:54:59 am »
Interesting idea.
Quote
3.)  Shuffles node ranks (Omits X-COM & Terrorist 2 )
This can produce a mess out of map. Like 2x2 units locked in small rooms and so on.

Offline murkhach@centrum.cz

  • Captain
  • ***
  • Posts: 59
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.62)
« Reply #2237 on: December 17, 2024, 11:11:16 am »
Interesting idea.This can produce a mess out of map. Like 2x2 units locked in small rooms and so on.
I can update code that both terrorist ranks would stay in place (I supposed that 2x2 is used for terrorist 2)
The code actually shuffle only ranks and reset priorities - so the unit size and movement limitations  stay as it is

 So theoretically   ( if terrorist 1 is 2x2 unit and allowed nodes for this ran  are small units only) map script does not spawn unit or report error
 However only one surface 2x2 units are terrorist , so I will add Binary that omits both terrorist ranks


Algorithm:
             for (int i = 0; i<fileLenght / 24; i++)
            {
                fs_Rmp.Read(buffer, 0, 24);   // 20 - unit rank,21-patrol priority,  23-spawn priority  (others like links, position, unit size are unaffected)
                RouteNode r = new RouteNode(buffer);
                r.SpawnPriority = 1;
                r.PatrolPriority = 1;

                ranks[r.Rank]++;
                if (r.Rank != 1 && r.Rank != 8) // not X-XCOM and terrorist
                    toMixNodeIndexes.Add(i);

                routeNodes.Add(r);
            }

            // randomization 
            while (toMixNodeIndexes.Count > 0)
            {
                int idx = RandVal(toMixNodeIndexes.Count);
                mixedNodeIndexes.Add(toMixNodeIndexes[idx]);
                toMixNodeIndexes.RemoveAt(idx);
            }

            ranks[1] = 0;

            int convertedNodes = 0;
            for (byte i = 0; i < 8; i++)
            {
                for (byte j = 0; j < ranks; j++)
                {
                    routeNodes[mixedNodeIndexes[convertedNodes]].Rank = i;
                    convertedNodes++;
                }
            }

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9258
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.62)
« Reply #2238 on: January 01, 2025, 08:49:33 pm »
Things to be fixed for oxce80:


3x 'Akamu in Polynesia.nam, change to "'Akamu"

Comments without preceding whitespace:
- in TWoTS/Language/en-US.yml
e.g.  STR_BLOOPT: "X-COM INVASION OF AN"#title
and similar, search for "#
there's about a dozen of them


Offline davidjrusson

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.62)
« Reply #2239 on: January 16, 2025, 10:59:29 pm »
Meridian

Thank you for your help with running OXCE.

Thought I would try the Mod TWotS for TFTD with OXCE.

Works ok with my v7.15  OXCE folder but when trying to run with v8.0.0 folder the load fails and drops me to desktop . T

he error log has the following entries :-

16-01-2025_20-44-43]   [INFO]   Loading rulesets...
[16-01-2025_20-44-43]   [FATAL]   Error loading file 'F:/Users/David/Documents/OpenXcom/mods/TWoTS/MGS_SoldierName/Polynesia.nam'
[16-01-2025_20-44-43]   [WARN]   disabling mod with invalid ruleset: TWoTS
[16-01-2025_20-44-43]   [ERROR]   failed to load 'The world of (terrifying) silence'; mod disabled
F:/Users/David/Documents/OpenXcom/mods/TWoTS/Ruleset/soldiers.rul: Rapidyaml ERROR: reached end of file while looking for closing quote

Is this mod compatible with the latest OXCE version or only runs with 7.15?

Many thanks

DavidR


Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9258
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.62)
« Reply #2240 on: January 16, 2025, 11:01:56 pm »
Is this mod compatible with the latest OXCE version or only runs with 7.15?

It's not compatible yet.
Nord is working on it.

Here is a list of compatible and not compatible major mods: https://openxcom.org/forum/index.php?topic=12367.msg169045#msg169045

Offline Nord

  • Commander
  • *****
  • Posts: 1754
  • The Gate is open.
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.62)
« Reply #2241 on: January 20, 2025, 09:54:05 am »
Version 2.63 is up.
Changelog:
- OXCE 8.0 compatible;
- Added new pirate map by murkhach.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9258
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.63)
« Reply #2242 on: January 20, 2025, 10:06:49 am »
Hi,
it still crashes.
Please add `ignore: DUMMY` to alienDeployments.rul, near line 320

Edit: I was wrong, it doesn't crash on the current beta version, because it was built in year 2024, but it will crash on the next release built in 2025... in any case, it needs to be fixed soon-ish


PS: we will now change the error so that it cannot be suppressed anymore by user options, there was enough time for migration (over 1 year)
Edit2: that whole error suppression concept is too complicated, even for me (and doesn't seem to help, since everybody is ignoring errors in the log file completely), in the future there will be no more error suppression possibility... just one deadline until when things need to be migrated and after that date, it will be a hard error.
« Last Edit: January 20, 2025, 09:52:54 pm by Meridian »

Offline Nord

  • Commander
  • *****
  • Posts: 1754
  • The Gate is open.
    • View Profile
Re: [TFTD] [Expansion] TWoTS+ Release (v.2.63)
« Reply #2243 on: January 21, 2025, 11:03:51 am »
Done.
Version 2.63.1 is up.
Fixed AlienDeployments.