This one was quite a mystery for a while, and it's essentially useless so to speak, because it seams to have been abandoned in the middle of coding.
It is related to object generation, and is executed before the game attempts to add objects via ObjGroup. Probably to push some hardcoded things on and change the way objects are spawned.
Now, it's not 1 column, it is a bitmask.
It fills an array of 7 function indexes depending on which bits are set:
0x00000001 -> func1
0x00000002 -> func2
0x00000004 -> func3
0x00000008 -> func4
0x00000010 -> func5
0x00000020 -> func6
0x00000040 -> func7
Then it rolls a rand between 0 and nArrayItems - 1 and attempts to call this function.
Here is what the functions do (I didn't intensively test)
func1 = always returns TRUE (does nothing)
func2 = tries to spawn barrels
func3 = does nothing, this is NULL
func4 = long compliated thing I didn't bother to check, probably spawns something
func5 = tries to spawn armor stands
func6 = tries to spawn weapon racks
func7 = like func6
Example for the barrel spawning one: album_page.php?pic_id=2614
...
And something extra, if you wonder how density in ObjGroup.txt works, its the number of interations of the loop spawning objects in the room. Based on a formula:
nObjects = ((room_w_subtiles*room_h_subtiles)/128*density)/256
Note that density > 128 will make the game assert.
The amount of objects spawned is however much smaller then this will make you think. The minimum distance between two objects is 6 subtiles (for the normal populatefn, #3).
The Purpose of the Theme Column in Levels.txt + Object Stuff
Post here for all aspects of map making and level design. Click here to visit the Keep's official map site, Diabolic Cartography.
Moderator: Paul Siramy
1 post
• Page 1 of 1
-
- Cherub
- Posts: 11607
- Joined: Sat Jun 15, 2002 8:13 pm
- Location: Where the blood forever rains
The Purpose of the Theme Column in Levels.txt + Object Stuff
Post by Nefarius » Wed Oct 24, 2007 10:32 am
Last edited by Nefarius on Wed Oct 24, 2007 11:06 pm, edited 4 times in total.
''(...) The game can basically be considered unhackable. '' - Blizzard Entertainment (30th May 2000)
Black Omen Productions | MetalStorm: Progress Report | Screenshots
Black Omen Productions | MetalStorm: Progress Report | Screenshots
Nefarius
1 post
• Page 1 of 1
Jump to
- The Phrozen Keep Forums
- ↳ Staff Announcements
- ↳ Keep Updates
- ↳ File Center Announcements
- ↳ Keep Polls
- ↳ Members area
- ↳ Member news
- ↳ Job Offerings
- ↳ Multi-Player Matchups
- ↳ Member Аnnouncements
- ↳ Feedback
- ↳ Site support
- ↳ Mod Spotlight & Quick links
- ↳ Keep Discord
- Diablo Universe
- ↳ Diablo II Legacy Modding and Discussion
- ↳ General Mod Making
- ↳ Tools
- ↳ Multimedia
- ↳ Map Editing
- ↳ Code Editing
- ↳ PlugY|NefEx|D2Mod
- ↳ Skill Clinic
- ↳ Mod Concepts & Research
- ↳ Mac Modding
- ↳ Diablo II Chatter
- ↳ Diablo II Resurrected Discussion
- ↳ Other Diablo Games
- Diablo II Legacy Mods
- ↳ Apokaliptic
- ↳ Plugins by Nizari
- ↳ Back to Hellfire
- ↳ Battle for Elements
- ↳ Black Omen Productions
- ↳ Mods by Nefarius
- ↳ Shadow Empires
- ↳ Blackened
- ↳ Diabolic Studios
- ↳ Diabolic Studios Site
- ↳ The Hordes of Chaos
- ↳ Dark Alliance
- ↳ Planar Rifts
- ↳ Dreamland betatesting
- ↳ Eastern Sun
- ↳ Eastern Sun Rises
- ↳ Escape From The Afterlife
- ↳ Le Royaume des Ombres
- ↳ Mods by Lady Isabelle
- ↳ Talonrage's Requiem of Sorrow
- ↳ Zy-El: Trial by Fire
- ↳ The Sandbox
- ↳ Unsupported Mods
- ↳ Nezeramontias
- ↳ Ancestral Recall
- ↳ Kingdom of Tenai
- ↳ Mods by GuyAskingQuestion
- ↳ The Fury Within: Ancients & Awakening
- ↳ Darkness Weaves
- ↳ V&K Mods
- ↳ New Dawn & North Star
- ↳ Baldur's Gate Mod
- ↳ Sir_Generals Rune Mod
- ↳ Dragons' Uprising
- ↳ Seasons After
- ↳ CryptForge
- ↳ d2:elements
- ↳ Underkill
- ↳ Pagan Heart
- ↳ Hades Mods
- ↳ Apocalypse
- ↳ Cubaholics
- ↳ Hades Underworld
- ↳ Sanctum Arcanum
- ↳ Arcanum Archives
- ↳ Rise of the Old Gods
- ↳ Elder Scrolls Mod
- ↳ Legacy of the Horadrim
- Diablo I Discussion
- ↳ Diablo I Chatter
- ↳ Diablo I Modding
- ↳ Devilution
- ↳ Infernity
- ↳ Belzebub
- ↳ Tchernobog
- ↳ EQUINE
- ↳ Crucible
- ↳ D1Legit
- Other Games
- ↳ It Lurks Below
- Miscellaneous
- ↳ Off-Topic
- ↳ Testing
- Currently Unavailable
- ↳ Upcoming Forums
- ↳ Limbo
- ↳ Seven Lances
- ↳ Wheel of Time
- ↳ Tactics Central
- ↳ Mod Reviews
- ↳ DoomsDay
- ↳ Time of Heroes
- ↳ Bloodwars, Inc.
- ↳ Darque Onyx Mods
- ↳ Cabal Wars - Aeons Tide
- ↳ Deathfile's Sanctuary
- ↳ A Pledge To Evil
- ↳ When Worlds Collide II
- ↳ Prophecy of Shadows
- ↳ Valhalla
- ↳ Darque Onyx Site
- ↳ Visions of Valor
- ↳ Cheater's Choice Series
- ↳ Dark Sabbath
- ↳ Corrupted Death
- ↳ Belize's Revenge
- ↳ Brother Laz
- ↳ Chaos Empire
- ↳ Odin's Runeword Mod
- ↳ Stormbringer
- ↳ The Dark Omen
- ↳ Mods By Laz
- ↳ The Stairway to Oblivion
-
- Login
-
- Who is online
- In total there is 1 user online :: 1 registered, 0 hidden and 0 guests
Most users ever online was 1797 on Tue Nov 25, 2008 1:27 pm
Users browsing this forum: carry and 0 guests
Recent Forum Topics
-
- Menu
-
- Community
-
- Modding Resources