game crashes when loading map


(NavySeal) #21

Thanks :slight_smile: , I’ll try the script tommorow cause its already late.


(NavySeal) #22

What should be the name of the script, mapname.script ot just mapname? When i tried the first one i think it didnt load the script, when i tried the second name it kept awaiting connection and then i got the windows error message ā€œthis application encountered an error and needs to close, we are sorry ā€¦ā€.


(MadJack) #23

The script name should be the same name as your map. Ex: my map is named ebe.bsp so the script name is ebe.script. Also the .script file has to be in the maps/ directory! Not in the script/ dir.

If the engine can’t find the script it won’t crash, it’s just that nothing that is linked to scripts will work. Like if you have a constructible, it will almost build the construction but the components will not disappear (since that part is controlled in the script file). At least that’s how it works here. :slight_smile:


(NavySeal) #24

But the game doesnt load the script, i got the .script file in the /maps folder and when i play the map the constructible does what u wrote and also the match time and spawn times are default.

I’ll probably never get this working on my own so if u could plz download the map and have a look at it i would be very glad.
http://www.mpomsar.szm.sk/stranky/MaZ%20clan/untitled2.htm


(MadJack) #25

You map can load fine if you comment/remove those two lines:


   //  wm_number_of_objectives 0 
   //  wm_setwinnner 0

I don’t use venice in my development install so those textures are missing. Make sure you ask chavo_one if it’s ok to use them!

Second, I think 6 hits for a window is too much… but that’s just me.

Third… You have about 20 duplicate planes/bad brushes in your map. I suggest you use the brush clean up button. (The button with a recycle kind of logo).

The damage on the electrical fence is way too fast. By the time I realized I was getting hurt, I was dead…

I know this is your first map but don’t give up. It’s a starting point. You should read tutorials extensively and search for VIS blocking.


(NavySeal) #26

The map was made for me and my friends and i wasnt planning to release it publicly. If i’ll ever decide to release it i will change them.

Chavo_one made that map? I think its a great map and i love it :clap:

The windows have the default health, dunno why i didnt change it. Maybe because i feel more safe in a house with hard-to-break windows. :lol:

I’ll have a look at the brushes.

I’ll lower the fence dmg to 10 per sec (its 15 now).

I have no idea what vis blocking is but as you suggested i’ll search for some tutorials.

Thanks for all the help MadJack. :slight_smile:

One last question, did the buildable ladder work?


(NavySeal) #27

Well i removed the things u posted from the script and still same thing happens, it doesnt load the script. I got the maz.script in the /maps folder along with maz.bsp.

How can it not work? :frowning:


(MadJack) #28

Well, it did work here.

Why do you say the script doesn’t load? Do you still crash?

I was able to build the ladder (that’s where I got electrified) and go into the building in the middle…


(NavySeal) #29

The map loads but the script doesnt.(the construction boxes dont disapear when i build ladder, spawn times are default…)


(=DaRk=CrAzY-NuTTeR) #30

hmmm, sorry to hear but at least you can load your map


(MadJack) #31

Now that’s because your tagetname/scriptname have to be identical to those in the script. Don’t forget that I changed the ā€œallies ladderā€ to ā€œallies_ladderā€. It HAS to be the exact same thing in the map/entities.

As for spawn times, it’s done using those in the game_manager scriptblock of the script:


wm_axis_respawntime	<TimeInSecs>
wm_allied_respawntime <TimeInSecs>


(=DaRk=CrAzY-NuTTeR) #32

silly mistakes :wink:

dont worry we all make em


(NavySeal) #33

I renamed the target names before but the reason why it didnt work was that the script name was maz.script.script :banghead:

It works now but the ladder is already constructed when i start map and it isnt supposed to be there. Everything else is as it should be (construction boxes disaper after i build the ladder - its actually built twice)

Edit: i fixed the ladder problem and now everything works fine. :smiley: