• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[SOLVED] Making Terrain UnWalkable Through LADIK'S CASC

Level 13
Joined
Jul 21, 2015
Messages
293
Hi all I need some help with my goal of making a certain terrain unwalkable.

After going down the rabbit holes of Hive's threads I saw a few options but couldn't puruse for several reasons.

1. Using triggers:
Possible Method

The only issue is my map size is:
Map size.png

  • Detonador sin nombre 001
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • For each (Integer Int1) from 0 to 64, do (Actions)
        • Loop - Actions
          • For each (Integer Int2) from 0 to 64, do (Actions)
            • Loop - Actions
              • Set VariableSet Temp_Loc1 = ((Point(-3328.00, -3328.00)) offset by ((128.00 x (Real(Int1))), (128.00 x (Real(Int2)))))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Terrain type at Temp_Loc1) Equal to Lordaeron Summer - Grass
                • Then - Actions
                  • For each (Integer Int3) from 0 to 3, do (Actions)
                    • Loop - Actions
                      • For each (Integer Int4) from 0 to 3, do (Actions)
                        • Loop - Actions
                          • Set VariableSet Temp_Loc2 = (Temp_Loc1 offset by (-64.00, -64.00))
                          • Set VariableSet Temp_Loc3 = (Temp_Loc2 offset by ((32.00 x (Real(Int3))), (32.00 x (Real(Int4)))))
                          • Environment - Set terrain pathing at Temp_Loc3 of type Any to Off
                          • Custom script: call RemoveLocation(udg_Temp_Loc3)
                          • Custom script: call RemoveLocation(udg_Temp_Loc2)
                • Else - Actions
              • Custom script: call RemoveLocation(udg_Temp_Loc1)

And I am unsure of how to modify his trigger with his coordinates, it was kind of unclear in that thread.

2. Using Ladik's CASC Viewer

*I was able to find the terrain.slk file and tried to edit it. However once I tested it out and changed the values to 0 to be unwalkable, none of the values had changed.

Ladiks casc.png

I used this link and this link to attempt to navigate it but also got lost.

3. Method 3
Using either Sharpcraft WorldEditor or JassNewGen to do UMSWE category and do certain things. But as I went down that rabbit hole of threads, it seemed that JassNewGen was DEFINITELY outdated. And Sharpcraft World Editor I couldn't even get it to open because I'm to new with the system.

I would prefer method 1 or method 2 as they seem like the correct method to alter terrain. But I will accept any further methods that could help in this instance as well. Feel free to educate me on what I'm doing wrong for ANY of these methods.

Also mods feel free to move this to World Editor Help Zone if you feel this thread belongs there.

Thanks all for any help!
 
Last edited:
I can confirm Terrain.slk works because I'm using it at the moment, you need to export a copy, make the changes and place it in C: (or whatever)> Warcraft III >_ retail _ (without the spaces) > TerrainArt > Terrain.slk
Do you know Chaosium how to find that file on my File Drive?
I tried to type it out but can't find it.
I see it easily on CASC and export it. I just don't know how to find it on file explorer or how repaste it on CASC.

error.png

error2.png
 
I'm not familiar with CASC, but anyway here find it attached, you'll just need to place it manually in the right directory
Thank you Chaosium!

I can't seem to find the file on my file explorer I can go to C:\Program Files (x86)\Warcraft III\retail

But then I cannot find Terrain Art or terrain.slk. I should have updated version. Maybe you have screenshot showing where the directory is hiding?

I tried to type in C: (or whatever)> Warcraft III >_ retail _ (without the spaces) > TerrainArt > Terrain.slk but can't find.

Ty!
 
Oh if it's not there you can create the folders yourself

View attachment 541728
Thank you bro I will do that

EDIT: it didn't seem to work, I changed values to 0, created folder in retail (with file inside), but still it didn't work @Chaosium

Edit: I got the directories to work but now the map looks like this:

I set Lordaren summer to 0 for walkability, 0 for buildability, and 0 for footsteps, 1 for flyability and 8 for blight priority

This source kind of helps finding it but I'm not quite sure:
This link helps immensely but I am still stuck

werid.png
 
Last edited:
Do you know Chaosium how to find that file on my File Drive?
I tried to type it out but can't find it.
The path should be <path to your WC3 install>/_retail_/TerrainArt/terrain.slk. If you're not sure where it is installed, you can right click your Warcraft 3 shortcut or start menu item and click Open file location (if it leads you to another shortcut, do it again).
So for me it is D:/games/Warcraft III/_retail_/TerrainArt/terrain.slk because I didn't use the default location (don't know what it is)

Make sure to add enable local files otherwise it won't work. You can follow this tutorial for that: Local files
 
The path should be <path to your WC3 install>/_retail_/TerrainArt/terrain.slk. If you're not sure where it is installed, you can right click your Warcraft 3 shortcut or start menu item and click Open file location (if it leads you to another shortcut, do it again).
So for me it is D:/games/Warcraft III/_retail_/TerrainArt/terrain.slk because I didn't use the default location (don't know what it is)

Make sure to add enable local files otherwise it won't work. You can follow this tutorial for that: Local files
thank you Gismo 😊 i will try that method now! i’ll edit and let you know how it goes

EDIT: solved dont use LIBRE OFFICE and expect it to work Lol
 
Last edited:
Back
Top