Can't use custom made elevator from elevator.ini in sfall moddiers folder

Fic_Mon

It Wandered In From the Wastes
upload_2020-7-4_16-44-3.png

I edited the elevator.ini and put it in the sfall folder (the path is sfall\elevators.ini), as you can see and I followed the elevator making tutorial in the fallout wiki tutorial.

The thing is when the set the stub is set to any other elevator image on the elevator stub it works but for some reason nothing happens with my elevator image 24.

Here is my map for reference:
upload_2020-7-4_16-54-1.png

upload_2020-7-4_16-54-33.png
 
Place spatial script with code:

Code:
procedure spatial_p_proc begin
     if (source_obj == dude_obj) then begin
          metarule(15, X);
     end
end

where X is your elevator number [24 here]

I hope that I haven't screwed anything writing it. Elevators.ini is new solution for creating elevators and not compatible with this tutorial.
 
Nothing happens when i use your code and it looks like different when compiled I am not sure if it does anything or it is an automatic note because it has a semicolon.
upload_2020-7-6_15-56-56.png


Here's the elevators.ini once again and its place in the sfall dir + the ddraw ini
upload_2020-7-6_15-59-36.png

upload_2020-7-6_16-0-53.png


My guess is that it's either the path to the ini or the FRMs because I dont know how to find an FRM file by the number.
 
Uhm, you are sure the elevators.ini file is in your Fallout 2 folder? Because in your screenshot it seems to be in the modders pack folder.
 
Because the screenshot of your ddraw.ini clearly says \sfall\elevators.ini
 
Nothing happens when i use your code and it looks like different when compiled I am not sure if it does anything or it is an automatic note because it has a semicolon.
View attachment 16076

Are u sure u did everything right? According to what u say, it doesn't seem like it. Also, the screenshot is just a copy paste of the code. You didn't show that u saved it as the appropriate filename, and compile, so I must ask..

1. Did u successfully compile the script into an .int file? No errors?
2. If u are replacing the original script, did you replace it in the script folder? If u are adding a new script, did u add the script to the scripts.lst and to the script folder?
3. Did u successfully add a spatial script on the map, attaching the correct script(.int file), and distance setting?

BTW, Did u check in-game, as opposed to in-mapper? sfall stuff don't work in mapper.
 
Last edited:
Are u sure u did everything right? According to what u say, it doesn't seem like it. Also, the screenshot is just a copy paste of the code. You didn't show that u saved it as the appropriate filename, and compile, so I must ask..

1. Did u successfully compile the script into an .int file? No errors?
2. If u are replacing the original script, did you replace it in the script folder? If u are adding a new script, did u add the script to the scripts.lst and to the script folder?
3. Did u successfully add a spatial script on the map, attaching the correct script(.int file), and distance setting?

BTW, Did u check in-game, as opposed to in-mapper? sfall stuff don't work in mapper.

1. Yes, I successfully compiled the script without errors.
2. Yes, I added the script to the lst file and the scritps folder.
3. Yes, I added my script to the map wiht a radius of 1 without any troubles

It works now sends me too the world map, but it works!!! I did everything right expect checking in-game.
Why does sfall stuff not work in the mapper?
 
Best explanation I can give is that sfall is an add-on which wasn't part of the original game. It effects a certain exe file (fallout2.exe). Therefore, using mappar.exe will not be effected by sfall.

Also, the same goes for scripting using sfall functions. It will cause issues if u want to check the script in the mapper. If u use the function "set_critter_skill_points" for example.
 
Last edited:
Zorchar do you know why the FRM i selected for the elevator's buttons doesnt work no matter which i pick.

I picked the one with 2 buttons:
upload_2020-7-7_14-49-22.png


But i get this elevator which teleports me to the world map whichever level i click (my map has only 2):
upload_2020-7-7_14-50-24.png


P.S: No need to explain why the hex cursor is repeating over the map since I already know why.
 
This is a nightmare. I declare that the elevators are 100% working.
You do something wrong, or do not know how to use it properly.
 
Sorry, never tried using the elevator thingy. I just left it for later to figure out.

My elevator.ini looks different, like so
Code:
[24]
Image=0
ID1=157
Elevation1=2
Tile1=15684
ID2=170
Elevation2=0
Tile2=23442
ID3=170
Elevation3=1
Tile3=23442
ID4=170
Elevation4=2
Tile4=23442

[25]
Image=0
ID1=157
Elevation1=2
Tile1=18757
ID2=171
Elevation2=0
Tile2=21908
ID3=170
Elevation3=1
Tile3=21908
ID4=171
Elevation4=2
Tile4=21908

[26]
Image=1
ID1=6
Elevation1=0
Tile1=28718
ID2=6
Elevation2=2
Tile2=22495

[27]
Image=1
ID1=42
Elevation1=0
Tile1=27448
ID2=42
Elevation2=1
Tile2=20497

[28]
Image=3
ID1=170
Elevation1=1
Tile1=30062
ID2=159
Elevation2=0
Tile2=33102

Are you using restoration project?
Funny, but looks as if your elevator follows my .ini file (RP Version). Just for kicks: try changing the "x" in the spatial script to "27" and see if it gets u to any map, and if you'll get the 2 button elevator.

EDIT: hmm, on second thought, it suppose to take u somewhere which doesn't exist outside of RP.

Is the .ini file compatible with the current version of sfall dll?

if u really want to figure this out, this is my advice.

1. install a clean fallout 2 version
2. install RP
3. use the same spatial script and the same modded map, and add to the appropriate maps.txt and city.txt
4. change the elevator.ini that comes with RP, and change the stats of [24] to the ones u want.

That is the best I can do. My knowledge on the subject is very limited.
 
Last edited:
Zorchar I followed your steps and it now works perfectly, seems like the code works only in the restoration patch for some reason. It most likely has something to do with the metarule 15

@fffffffff Can you elaborate on this, and can you explain what that code does
upload_2020-7-8_15-35-26.png
 
Last edited:
Can you elaborate on this, and can you explain what that code does

Code:
#define METARULE_ELEVATOR         15
#define elevator(X)       metarule(METARULE_ELEVATOR, X)

Metarules are engine functions. If it works in the RP but not in your project, then there is an error in your project.
 
seems like the code works only in the restoration patch for some reason. It most likely has something to do with the metarule 15
I think most likely the elevator.ini was misconfigured. It might be an older .ini structure that mismatches the new sfall version's structure, for instance. Many reasons for mismatches are possible.

Just to give u an idea, I recently merged 2 ddraw.ini together (RP version, and the version recently published with the inventory filter). I also replaced to the newer dll. Everything worked fine. then, I tried to enter a new map. Game crash. the new and old ini had diffrences in structure. I had to go each function from the original ini, find it in the newer one, and replace accordingly.

Now that u have a completely workable version of the elevator.ini, u should merge to a new one by using the same method I did, or problems such as these will happen.
 
Last edited:
Back
Top