May 23, 2012, 05:15:02 AM

Username
Password

Pages: [1]   Go Down
Print
Author Topic: Moving Buildings/Huts/Objects around MAPS  (Read 1357 times)
0 Members and 1 Guest are viewing this topic.
olly
Global Spokesperson
*
Offline Offline

Posts: 1002



View Profile
« on: April 29, 2008, 10:00:01 PM »

These 3 Pics show early Mod to Move Huts around the Map.

They also stay solid Objects as seen on last pic where Troops are trying to
Charge through the Hut which has been moved across the River.

Full Tutorial will follow, Thanks to Mikademus's guide on Hex Editing the B1_01.PRJ file and the contained Position and Orientation Data Values.

We should now be able to Mod Existing Maps and create New Strategy by moving Objects around, combined with the Deployment Zone Mod.

All of this is great training towards a Map Editor or incorporating Single Player Maps into Multiplayer.

Smiley

We Live In Exciting Times, please feel free to Join in.

Floating Huts




Hut Moved off Map


Solid Hut moved across River


Smiley



Rob:-

"This looks cool.

Did editing the ATTR block work out then, or was it unnecessary? I still haven't been able to confirm whether my interpretation was correct (No working dark omen yet! ").


Olly:-

"Luckily I didn't have to ammend the ATRR block as the Hut and its Attributes came with it, when I moved it around.

As the Pic shows, it is solid but i will further Test Line Of Sight and other things to double check.

However, I would almost like there to be some Stuff in the ATRR block to ammend as it would provide us more clues".


Mikademus:-

"could you move through the hut after you had moved it to a new position, or was it an obstacle that had to be moved around? Did it block line of sight for your archers and cannon? Could you move through where the hut had been positioned originally"?



Olly:-
Yes the Hut is solid.

Smiley

as I tried to charge men through it and they couldn't.

Which makes my Life easier.

I have been Dreaming of






Rob:-

"that's interesting, since the huts etc. are represented in both the 'ATTR' and (half of) the 'TERR' blocks. Wonder what is going on. Can cannon fire through the hut's original positions"?





« Last Edit: April 30, 2008, 09:56:32 PM by olly » Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
olly
Global Spokesperson
*
Offline Offline

Posts: 1002



View Profile
« Reply #1 on: July 28, 2010, 06:54:10 PM »

Sadly after moving huts on B1_01 or Trees on Spare9, Cannons, magic and arrows can pass through them...although troops can not Charge their way through, due to the bounding Box (INST>min max boundaries and same for adding existing or new Furniture to other maps).

What is interesting about Spare9 ATTR block is that it is almost empty, so not sure what is making the Trees, originally block arrows, magic and cannon fire. Since when I move them they no longer retain their Solidness. I guess it leaves only the TERR block within .PRJ files.

Tutorial Map showing Solid tree protecting Wizard-At best I can place a new House over existing Trees to ensure solidness

ATTR block within Spare9.PRJ (Tutorial Map file)

However, after moving an original 3d object like a hut on Trading Post mission 1 the space it occupied can still have fireballs shot into it, so only when a Hut or Tree is in its original location does it become solid, moving it looses its ability to block shots, although I can still prevent troops charging through it.

This shows the location of where the Hut used to be can still have Fireballs pass through it, so not just dependant on the map position perhaps?


I have offered a reward for anyone that can help us out with Editing Maps, by advertising to Hire and pay for Professional Programmers, since Time is Money and I'm more than happy to fund any attmepts- Rob and Mikademus please feel free to apply, as I know you lead busy lifes already.

http://www.peopleperhour.com/freelance_jobs_work_projects/Game-Modder/31177

For more Modding info on PRJ files and TERR and ATTR blocks  please check out our Wiki
http://wiki.dark-omen.org/do/DO/PRJ

All of this exciting work contributes to New Maps project
http://forum.dark-omen.org/3d-scenery-models/map-template-mod-t796.0.html

Smiley


« Last Edit: July 28, 2010, 07:20:08 PM by olly » Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
olly
Global Spokesperson
*
Offline Offline

Posts: 1002



View Profile
« Reply #2 on: July 29, 2010, 03:57:58 PM »

Pending further Tests I think I have solved the problem of Scenery loosing its abilities to block projectiles, after they have been moved around. Thanks to Rob's BTB editor, a radius can be set around the House/Hut or Tree that stops arrows,magic and Cannon fire, passing through it.
Original Obstacle radius that covers the Hut and Barrel on Trading Post-Mission 1


As Documented in our Wiki
http://wiki.dark-omen.org/do/BTB

Obstacles Chunk
This chunk seems to contain information about obstacles on the map (e.g. trees). Increase the Integer Record by a higher value (e.g. +10) to avoid crashes in non-official Multiplayer maps. This might imply that the number (type=8) corresponds to an amount of memory to allocate for something.

OBSTACLES CHUNK, type=3, size=<varies>
   INTEGER RECORD (unknown) type=8, size=12

   COMPOUND RECORD 0 (contains sub-records) type=501, size=80
      INTEGER RECORD (type of obstacle - might be bit flags - see table below) type=5, size=12
      INTEGER RECORD (x position) type=1, size=12
      INTEGER RECORD (y position) type=2, size=12
      INTEGER RECORD (z position) type=4, size=12
      INTEGER RECORD (radius of bounding sphere) type=6, size=12
      INTEGER RECORD (direction - normally 0) type=7, size=12
   COMPOUND RECORD 1 (contains sub-records) type=501, size=80
   .
   .
   .
   COMPOUND RECORD n (contains sub-records) type=501, size=80
Type  Description  
1  This obstacle is active  
2  This obstacle blocks movement into its area  
4  This obstacle blocks movement and projectiles into its area  

n.b. some of the above information is guessed by analogy to the text script files found in SotHR


So i moved the large purple circle that surrounded the Hut on Trading Post Mission 1, to now be in the same place as I previously moved the Hut and it now stops projectiles.





All Projectiles (Arrows,Fireballs and Cannon) are now blocked by the BTB Obstacle Radius.

This combination works successfully on any new 3d scenery -



Smiley
« Last Edit: August 16, 2010, 10:29:23 PM by olly » Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
Grend
2D Sprite Artist
*
Offline Offline

Posts: 256



View Profile
« Reply #3 on: August 02, 2010, 10:21:52 PM »

Good Job man!
Logged

On vacation
alavet
Pistolier
*
Offline Offline

Posts: 991



View Profile
« Reply #4 on: August 03, 2010, 07:18:03 AM »

when i reread this post i saw topic name and thought" wow, moving & attacking buildings!". oh wait..
Logged

Battle not with monsters, lest ye become a monster, and if you gaze into the abyss, the abyss gazes also into you.
Pages: [1]   Go Up
Print
Jump to: