News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Area code 22  (Read 2004 times)

0 Members and 2 Guests are viewing this topic.

Offline Razc01na

  • Lord Slayer
  • Full Member
  • ***
  • Posts: 156
  • Gender: Male
  • Doom is life
    • View Profile
Area code 22
« 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.

Offline SimonBestia

  • Full Member
  • ***
  • Posts: 294
  • Gender: Male
  • Bully-Board's Best Weeb
    • View Profile
    • Youtube Channel
Re: Area code 22
« Reply #1 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")
« Last Edit: March 25, 2021, 09:34:02 AM by SimonBestia »

Offline Razc01na

  • Lord Slayer
  • Full Member
  • ***
  • Posts: 156
  • Gender: Male
  • Doom is life
    • View Profile
Re: Area code 22
« Reply #2 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