Author Topic: [SUBMOD][MAPS]Expanded Terror Reworked - Version 1.2  (Read 2221 times)

Offline hellrazor

  • Moderator
  • Commander
  • ***
  • Posts: 2191
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
[SUBMOD][MAPS]Expanded Terror Reworked - Version 1.2
« on: October 06, 2016, 05:02:43 am »
Expanded Terror Reworked

Download: Dropbox

Also on: mod.io

This file is also attached towards this post.

Original Mod by Luke83

#Expanded Terror Reworked by hellrazor
#Based upon the work of luke83 who made all these lovely maps
 
Credits go to:
 - hellrazor for reworking and bugfixing
 - luke83 the original maker of this mod
 - Hobbes for compatible MADECOR.MCD
 
Required: openxcom_git_master_2015_07_28_1355 or newer
 
README:
 
Lukes Expanded Terror Missions are back again, updated and
honed to run on the newest github code from OpenXcom.
 
To be honest, the old Maps had some serious quirks; wrong placed
wall tiles, route nodes not connected , wrongly assigned spawn points and so forth.
 
This Version comes with an overworked Route/Node Network, it also has the cellars
removed, since they caused more trouble then they were worth.
 
Since I adapted those Maps for my Hardmode Expansion Mod, I decided to also release them
as a standalone Mod, so people can try them out and enjoy them once more.
 
The Maps are now also compatible with MADURBAN Terrain from the Terrain Pack,
so they will probably find their way into it as well.
 
---
Changelog:
 
Version 1.2
 - Fix Route Node on EXPANDEDTERROR21
 - Fix missing LOFTS for some Tiles in MADDECOR.MCD
 - Fix some minor Errors with wrong placed Tiles
 - Replaced Tiles due to MCD conversion
 - Removed FRNL83.MCD and replaced with FRNITURE and MADDECOR
 - Removed Copies of vanilla Maps
 - Reworked Mapscript
 
Version 1.1
 - Fix Crash because of non-vanilla Civilians in the Terrain definition
 
Version 1.0
 - Converted old Ruleset to new mapscripting standard
 - Resized MAPs and removed cellars
 - MAP routing/nodes check, fix and rework where neccessary
 - Fix wrong placed wall tiles in a varienty of MAPs
 - Adjust ruleset to changes in: openxcom_git_master_2015_07_28_1355

Some pictures for your enjoyment attached.
« Last Edit: February 10, 2019, 02:48:29 pm by hellrazor »

Offline luke83

  • Commander
  • *****
  • Posts: 1459
    • View Profile
    • openxcommods
Re: [SUBMOD][MAPS]Expanded Terror Reworked - Version 1.2
« Reply #1 on: November 24, 2018, 01:31:28 pm »
Need some ruleset help,
 I have added one test block to this mapblock set into Terrains.URL:
Code: [Select]
  - name: EXPANDEDTERROR30 #2 test park
        width: 20
        length: 20

and i am trying to workout what i need to add into Mapscript  to get it in game.

What i dont understand is how these GROUP numbers map over to individual map blocks?
Code: [Select]
mapScripts:
  - type: EXPANDED_TERROR
    commands:
    - type: addLine
      label: 1
      direction: vertical
      executionChances: 33
    - type: addLine
      label: 2
      conditionals: -1
      executionChances: 50
      direction: horizontal
    - type: addLine
      conditionals: [-1, -2]
      direction: both
    - type: addCraft
    - type: addBlock
      label: 3
      executionChances: 75
      size: 2
      executions: 3
      blocks: [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
      freqs: [1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1]
    - type: addBlock
      conditionals: -3
      size: 2
      executions: 3
      blocks: [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
      freqs: [1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2]
    - type: fillArea
      blocks: [0, 1, 2, 13, 14, 15, 16, 30, 32, 33, 34, 35, 36]
      freqs: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3]

Are the LABELS the Group NUmber from the Terrain map and how does the Blocks map over to the .MAP files?

Offline hellrazor

  • Moderator
  • Commander
  • ***
  • Posts: 2191
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: [SUBMOD][MAPS]Expanded Terror Reworked - Version 1.2
« Reply #2 on: November 24, 2018, 07:43:04 pm »
Need some ruleset help,
 I have added one test block to this mapblock set into Terrains.URL:
Code: [Select]
  - name: EXPANDEDTERROR30 #2 test park
        width: 20
        length: 20

and i am trying to workout what i need to add into Mapscript  to get it in game.

What i dont understand is how these GROUP numbers map over to individual map blocks?
Code: [Select]
mapScripts:
  - type: EXPANDED_TERROR
    commands:
    - type: addLine
      label: 1
      direction: vertical
      executionChances: 33
    - type: addLine
      label: 2
      conditionals: -1
      executionChances: 50
      direction: horizontal
    - type: addLine
      conditionals: [-1, -2]
      direction: both
    - type: addCraft
    - type: addBlock
      label: 3
      executionChances: 75
      size: 2
      executions: 3
      blocks: [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
      freqs: [1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1]
    - type: addBlock
      conditionals: -3
      size: 2
      executions: 3
      blocks: [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
      freqs: [1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2]
    - type: fillArea
      blocks: [0, 1, 2, 13, 14, 15, 16, 30, 32, 33, 34, 35, 36]
      freqs: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3]

Are the LABELS the Group NUmber from the Terrain map and how does the Blocks map over to the .MAP files?


Labels are to define conditionals. So you can make if then that builds.
The numbers in blocks are numerical order of maps in terrain definition. Count starts at zero.

Offline luke83

  • Commander
  • *****
  • Posts: 1459
    • View Profile
    • openxcommods
Re: [SUBMOD][MAPS]Expanded Terror Reworked - Version 1.2
« Reply #3 on: November 24, 2018, 11:41:32 pm »
So i am still getting game crashes, here is what i have done:

created a test block EXPANDEDTERROR30 ( it was original 10x20 but when it kept crashing i quickly doubled the size of it in case the game didnt like that size map block in the urban terror site or something.

I added this to the Bottom of the Terrain ruleset:
Code: [Select]
      - name: EXPANDEDTERROR30 #2 test park
        width: 20
        length: 20
I added the extra numbers to the end of the Mapscript ruleset but only in the FILL AREA section:
Code: [Select]
    - type: fillArea
      blocks: [0, 1, 2, 13, 14, 15, 16, 32, 33, 34, 35, 36, 38]
      freqs: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3]

I copied the Map and Route into the mod.

What else am i missing?

Game still crashes and the Error log is spoon feeding me an answer so i am stuck...

All this extra work just so my kids can try modding :)

Offline hellrazor

  • Moderator
  • Commander
  • ***
  • Posts: 2191
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: [SUBMOD][MAPS]Expanded Terror Reworked - Version 1.2
« Reply #4 on: November 25, 2018, 12:01:32 am »
So i am still getting game crashes, here is what i have done:

created a test block EXPANDEDTERROR30 ( it was original 10x20 but when it kept crashing i quickly doubled the size of it in case the game didnt like that size map block in the urban terror site or something.

I added this to the Bottom of the Terrain ruleset:
Code: [Select]
      - name: EXPANDEDTERROR30 #2 test park
        width: 20
        length: 20
I added the extra numbers to the end of the Mapscript ruleset but only in the FILL AREA section:
Code: [Select]
    - type: fillArea
      blocks: [0, 1, 2, 13, 14, 15, 16, 32, 33, 34, 35, 36, 38]
      freqs: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3]

I copied the Map and Route into the mod.

What else am i missing?

Game still crashes and the Error log is spoon feeding me an answer so i am stuck...

All this extra work just so my kids can try modding :)

The fill area sections usually only contains blocks sized 10x10, to make sure that the rest of the map can be populated fully.
Adding a 20x20 block here will probably result in a crash if the game attempts to add the specific block.

Also is said that "blocks" starts counting on zero not one.
So your entry has to look like this:

Code: [Select]
    - type: fillArea
      blocks: [0, 1, 2, 13, 14, 15, 16, 32, 33, 34, 35, 36, 37]
      freqs: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3]

Even thou it is way better to add the 20x20 sized map block not to the fill area section.
Do it like this:

Code: [Select]
mapScripts:
  - type: EXPANDED_TERROR
    commands:
    - type: addLine
      label: 1
      direction: vertical
      executionChances: 33
    - type: addLine
      label: 2
      conditionals: -1
      executionChances: 50
      direction: horizontal
    - type: addLine
      conditionals: [-1, -2]
      direction: both
    - type: addCraft
    - type: addBlock
      label: 3
      executionChances: 75
      size: 2
      executions: 3
      blocks: [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 37]
      freqs: [1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    - type: addBlock
      conditionals: -3
      size: 2
      executions: 3
      blocks: [17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 37]
      freqs: [1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2]
    - type: fillArea
      blocks: [0, 1, 2, 13, 14, 15, 16, 32, 33, 34, 35, 36]
      freqs: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      maxUses: [2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3]

A discription for the mapscripts can be found in ruleset reference, which i strongly recommend reading here:
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Map_Scripts

Offline luke83

  • Commander
  • *****
  • Posts: 1459
    • View Profile
    • openxcommods
Re: [SUBMOD][MAPS]Expanded Terror Reworked - Version 1.2
« Reply #5 on: November 25, 2018, 12:25:41 am »
Cool, i have it working in game now, i will switch it back to the correct mapset and allow the kids to play, thanks for your help.

Had a read of the link, still dont understand the labels and Conditionals, can you  (or someone else) offer a idiots guide to how these work?
your examples use -1, -2, can you spell it out what this is doing exactly and pretend your talking to a idiot when you explain it ( because you are  :P)

Offline hellrazor

  • Moderator
  • Commander
  • ***
  • Posts: 2191
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: [SUBMOD][MAPS]Expanded Terror Reworked - Version 1.2
« Reply #6 on: November 25, 2018, 12:35:09 am »
Cool, i have it working in game now, i will switch it back to the correct mapset and allow the kids to play, thanks for your help.

Had a read of the link, still dont understand the labels and Conditionals, can you  (or someone else) offer a idiots guide to how these work?
your examples use -1, -2, can you spell it out what this is doing exactly and pretend your talking to a idiot when you explain it ( because you are  :P)

Conditionals have to fulfilled , labels are markers for settings conditionals.

In the mapscript at hand, executionchances are given, if these not occur, then conditionals get active. Simple right?

What you can essentially do is, is create different block preferences which get executed, to a certain percentage.
So the generated map can look totally different. For example, the mapscript can have two section for 20x20 map blocks.
Each with a execution chance. One might be spawning the large 20x20 building 3 times the other only once etc...