-
Posts
1.265 -
Joined
-
Days Won
9
Everything posted by Silier
-
You should not create another account, it is allowed one account per person I pinged Stan, he maybe will know what is wrong. What was name of your first account?
-
ping @Stan`
-
hi @Marius.rv, go to settings and disable tls option. By this you allow not encrypted comunication with server. There is problem with handshake, devs are working on it to fix it to the next release. (they may have fix ready for a24)
-
Running, charging, stamina and stances (with a bit of formations)
Silier replied to Karamel's topic in General Discussion
Formation.prototype.Run = function() { let maxSpeed = 0; for (let ent of this.members) { let cmpUnitMotion = Engine.QueryInterface(ent, IID_UnitMotion); if (cmpUnitMotion) { if (maxSpeed == 0) maxSpeed = cmpUnitMotion.GetRunMultiplier(); else maxSpeed = Math.min(maxSpeed, cmpUnitMotion.GetRunMultiplier()); } } maxSpeed *= this.GetSpeedMultiplier(); <- apply formation speed multiplier this.speed = maxSpeed * this.minSpeed; <- this.minSpeed is minimal walking speed of formation this.running = true; let cmpUnitMotion = Engine.QueryInterface(this.entity, IID_UnitMotion); cmpUnitMotion.SetSpeedMultiplier(this.speed); } I use something like this -
@Adeimantos I think we need now to set up Runmultiplier and Projectile changes from svn to get compatible if you are interested but feel free to work on which part do you want, link to discord in first post have been fixed, you can join now
- 159 replies
-
- 1
-
Running, charging, stamina and stances (with a bit of formations)
Silier replied to Karamel's topic in General Discussion
@Freagarach what is your code to set formation to run speed? -
[Updated 2022] List of Buttons[Commands] for GUI session
Silier replied to Lion.Kanzen's topic in General Discussion
@Freagarach sry I am fighting with unit test anyway I replied on phabricator -
[Updated 2022] List of Buttons[Commands] for GUI session
Silier replied to Lion.Kanzen's topic in General Discussion
@Freagarach There is not currently such function in IcmpRangeManager. But CmpRangeManager has tools to pretty fast say if given position is explored by given player. You need to add this into ccmprangemanager and bind it with interface call in icmprangemanager Should do the trick virtual bool isTileExplored(CVector2D pos, player_id_t player) { int i = (pos.X / (int)TERRAIN_TILE_SIZE).ToInt_RoundToNearest(); int j = (pos.Y / (int)TERRAIN_TILE_SIZE).ToInt_RoundToNearest(); CLosQuerier los(GetSharedLosMask(player), m_LosState, m_TerrainVerticesPerSide); return los.IsExplored(i, j); } -
Update: Fixed behaviour of vision in water and improved detection of hills. Now unit will see up to the top of hill. So you will have not black holes unless hill is flat. Sometimes side of hill will not be detected if there is smaller hill before it and blocks vision of unit but I am afraid further improvement would need more complex computation and checking. Compiled version in first post.
-
@nani could you send me replay with bug? In svn los is computed in stripes from bottom of vision range to top. I changed computation to squares going from position to vision range borders. Although I had to remove incremental update of that stripes and replace it with total remove and add as it were before it was optimised. To the current blocking I have boolean map matching los map strucute. As I said I go from entity position out. So In every iteration I check first height and if still visible then I check related tiles which could block vision from position and when I have d result I update related boolean map for next iteration and show hide tile for player.
-
For start I plan only depending on terrain height and entity height. For example: towers will have bonus and will see over hills that are lower then their height. It could work with structures if their height would be added / substracted to terrain height in some cache to avoid obstruction checking when updating visibility.
-
Step 1: Entity does not see terrain higher than its position. [done] Step 2: Entity does not see terrain behind hills [done] Step 3: Entity height influences how high can see (height from outpost's footprint allows to see what is on the hill) [maybe better to use some new parameter than footprint ? ] Step 4: Performance [maybe will not be needed] Last build version Windows: pyrogenesis.exe (outdated version) Related diff: https://code.wildfiregames.com/D1905
- 27 replies
-
- 10
-
===[COMMITTED]=== Horse Update 2.0 (Retexture)
Silier replied to Alexandermb's topic in Completed Art Tasks
@Alexandermb hi, there are two animation files in biped/rider/cavalry/generic: attack_shield_b_cut attack_shield_cut_b is there some difference in animation? -
Thank you for report. Possible problem has been identified
-
hi, is this still relevant or has been solved? looks just like only you need to add empty line into the config file.
-
Are there balancing changes planned for A24?
Silier replied to coworotel's topic in Gameplay Discussion
@camel you could be a more polite -
Are there balancing changes planned for A24?
Silier replied to coworotel's topic in Gameplay Discussion
this one? https://trac.wildfiregames.com/wiki/ReviewingPatches -
yeah, here is the thing. Should it be some special visual object or just last dostroyed tower rendered with some special efect?