I'm trying to replace units that acted as doodads in my dungeons (for my diablo mortal shroud map) with actors because that should result in a better performance.
To create actors in the first place, I need to use "create model at point" for some reason. ("Create actor at point" doesn't seem to do anything at all.)
This creates an actor called "trigger model".
The problem is that I can't get "trigger model" to generate snapshots in the fog of war.
I altered the entry in the data to have a "_Snapshot" alias. That was working for attached actors, but it doesn't seem to work for simple model actors. I tried to use the "Take Snapshot" actor message, too, but it didn't alter anything.
So, does anyone have an idea how I could make the snapshot work?
edit:
Dimmed visibility seems to work in general. The models just react slightly odd.
I'm currently tinkering with the visibility radius of the model...
edit:
Visual Radius of 0.01 seems fine. The model is only bright when it's outside the fog area.
The only complaint I can have is that they are visible through vision blocking walls.
My walls are 1x1 buildings. Unfortunately there doesn't seem to be a way to make vision blockers not remove the black mask of a 1x1 area around the footprint. This allows the player to see the terrain on the other side of the wall which reveals the doodads.
Oh well, it's only a minor problem as my walls give away the dungeon structure, too.
Sorry I just found this thread googling if there was some info about the snapshot actor type :P
On Hive Keeper I did a lot of experiments on actor spanshots.
First of all I'll say I always used "create actor at point" to place walls and room decorations on hive keeper and it works properly. What's important is the actor type.
I tried only the types having the "fog visibility" and "model" attributes but only few of them were placeable by trigger.
- Model: placed correctly but fog of war snapshot is not working
- Doodad: placed correctly but not showing until all map is revealed, in the past I remember that ALL trigger placed doodads visibility was refreshed exploring the bottom left corner of the map but now I'm not able to reproduce it anymore... maybe it changed with some patch
- Action: error
- Unit: error
- Snapshot: error
My final solution was to use the model actor type and use revealers to show them permanently.
However this doesn't allow me to reveal all map walls under the fog of war. That would allow me to hide if a wall has been destroyed in the meanwhile or not.
Do you think it's possible to fix the fog snapshot using actor events?
Attachment to unit actor that generates a snapshot:
I found a solution for actor-only things, too. But it's not perfect. I get warnings because of the visual radius and some models are still "bigger" in their revealing radius that they actually are... so, sometimes I can see them through walls which I wish to be able to fully eliminate.
Anyway, here it is:
Also, I've set the "Trigger model" actor's fog visibility to "dimmed".
I had a problem with creating actors via triggers. That's why I'm using models. There might be a better solution to make trigger-created actors work that are visible when "scouted" once.
Play my map and every stone and blood patch you can find is created with this.
The problem with the dimmed visibility is that if the actor gets destroyed while in the fog of war, it's status is updated and it will disappear before it's explored again.
Does anyone know a way to manually force a snapshot actor using events?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to replace units that acted as doodads in my dungeons (for my diablo mortal shroud map) with actors because that should result in a better performance.
To create actors in the first place, I need to use "create model at point" for some reason. ("Create actor at point" doesn't seem to do anything at all.)
This creates an actor called "trigger model".
The problem is that I can't get "trigger model" to generate snapshots in the fog of war.
I altered the entry in the data to have a "_Snapshot" alias. That was working for attached actors, but it doesn't seem to work for simple model actors. I tried to use the "Take Snapshot" actor message, too, but it didn't alter anything.
So, does anyone have an idea how I could make the snapshot work?
edit:
Dimmed visibility seems to work in general. The models just react slightly odd.
I'm currently tinkering with the visibility radius of the model...
edit:
Visual Radius of 0.01 seems fine. The model is only bright when it's outside the fog area.
The only complaint I can have is that they are visible through vision blocking walls.
My walls are 1x1 buildings. Unfortunately there doesn't seem to be a way to make vision blockers not remove the black mask of a 1x1 area around the footprint. This allows the player to see the terrain on the other side of the wall which reveals the doodads.
Oh well, it's only a minor problem as my walls give away the dungeon structure, too.
For example, this skeleton is visible across the wall.
Sorry I just found this thread googling if there was some info about the snapshot actor type :P
On Hive Keeper I did a lot of experiments on actor spanshots.
First of all I'll say I always used "create actor at point" to place walls and room decorations on hive keeper and it works properly. What's important is the actor type.
I tried only the types having the "fog visibility" and "model" attributes but only few of them were placeable by trigger.
- Model: placed correctly but fog of war snapshot is not working
- Doodad: placed correctly but not showing until all map is revealed, in the past I remember that ALL trigger placed doodads visibility was refreshed exploring the bottom left corner of the map but now I'm not able to reproduce it anymore... maybe it changed with some patch
- Action: error
- Unit: error
- Snapshot: error
My final solution was to use the model actor type and use revealers to show them permanently.
However this doesn't allow me to reveal all map walls under the fog of war. That would allow me to hide if a wall has been destroyed in the meanwhile or not.
Do you think it's possible to fix the fog snapshot using actor events?
Attachment to unit actor that generates a snapshot:
I found a solution for actor-only things, too. But it's not perfect. I get warnings because of the visual radius and some models are still "bigger" in their revealing radius that they actually are... so, sometimes I can see them through walls which I wish to be able to fully eliminate.
Anyway, here it is:
Also, I've set the "Trigger model" actor's fog visibility to "dimmed".
I had a problem with creating actors via triggers. That's why I'm using models. There might be a better solution to make trigger-created actors work that are visible when "scouted" once.
Play my map and every stone and blood patch you can find is created with this.
The problem with the dimmed visibility is that if the actor gets destroyed while in the fog of war, it's status is updated and it will disappear before it's explored again.
Does anyone know a way to manually force a snapshot actor using events?