Bully-Board

Bully Modding Section => Bully Modding => Topic started by: Razc01na on March 22, 2021, 07:46:06 AM

Title: Area code 22
Post by: Razc01na on March 22, 2021, 07:46:06 AM
While going through a library of decompiled scripts released here some time ago I noticed some test scripts will take the player to an area code 22 (which doesn't exist so the game just crashes).

Could it be a beta test area?

I could not find anything in the game files that mentioned this area.
Title: Re: Area code 22
Post by: SimonBestia on March 25, 2021, 09:31:25 AM
Area ID 22 indeed belongs to one of the test areas, "Island 3" to be exact.
The other one's ID is 31, called "Test Area".

Your game crashes because those areas aren't loaded normally.
It's easy to do it, just use AreaRegisterAreaScript(AreaCode, "AreaScripts/YourScriptNameHere.lua").

In this case, you want:
Code: [Select]
AreaRegisterAreaScript(22, "AreaScripts/Island3.lua")
Title: Re: Area code 22
Post by: Razc01na on March 25, 2021, 11:13:39 AM
I see... 22 is for island 3

There was also a script with that name in the archive. There was also a script for the test area.
I might check things out when I have time.

thanks  :D