Author Topic: To Do List & Bugs  (Read 40639 times)

daniel.santos

  • Guest
To Do List & Bugs
« on: 4 May 2008, 22:53:49 »
This is a list of outstanding & planned items for the Glest Advanced Engine.  I put the targeted branch or version for each item following the description.

  • Lightning still needs a visual effects revamp.  This will probably involve further enhancements to the base particle system (to produce long shafts without having to manage so many individual particles). [0.2]
  • Effects do not yet support sounds, particles & changes to lighting. [0.3]
  • Lighting & shadows looks a little funny from a distance.  It tends to cast shadows a set, square distance away and looks funny (perhaps because the light intensity doesn't follow the inverse square law?) Can probably be fixed by applying an alpha to the shadow based upon the distance from the light source, but only from local light sources (i.e., not sun or moon). [0.2?]
  • MaxRenderDistance setting is not yet doing anything.  GameCamera::computeVisibleQuad() needs to be re-implemented (I never got around to finishing that one before) and use MaxRenderDistance.   (I need to suck in the code from Glest 3.2 beta, I think Martiño has done some work on this)[0.2]
  • AI for interacting with & pathing around enemy walls -- they should only attack an enemy wall when they can't find another nearby way around it.  Additionally, AI should always focus their attacks on the same portions of a wall and prefer the most easily destroyed (usually a gate).  Note: A "wall" is defined as any unit with the "wall" property in it's definition. [0.2??]
  • Unit skills to alter map landscape (dig gullies, etc. - for FPM Path of Reason ). [>0.2]
  • Move skills need to have a max incline/decline and speed modifiers based upon incline and decline (slower up hill, faster down hill) [Update: Glest has always modified unit's speed based upon incline/decline, it's just a very small change in unit speed].  This may possibly involve other realistic travel hazards such as taking damage from "slipping" and going downhill faster than tolerated or even slipping and sliding downhill when attempting to climb a steep incline.  This will allow scouts to go places that a mounted unit cannot, etc. [>=0.3]
  • adding "whatsits" (a.k.a., Glesimals :( [0.2, Status: pain in the arse - have done some work on this in 0.2.8, needs more testing.]
  • Pathing code needs revamp due to performance problems. [0.2]
  • Need to tweak the way the engine manages alpha layers in textures/models so that the Lich's cape doesn't look funny. [0.2 or 0.3]
  • Remove "phantom cancel button" from GUI. http://http://www.glest.org/glest_board/viewtopic.php?t=3441 [0.2]
  • Harvesting units are getting stuck courtyard of FPM Abbey[0.2]
  • collision detection for left-clicking on non-display element (buttons, minimap, etc.) uses too much processing and can cause a pause in the game on slower machines when the number of total units in game increases. [Status: Partially fixed in 0.2.8: This is a long-standing Glest issue.  Every left click makes a call to Renderer::renderUnitsFast() to collect mesh data and determine if there is a collision or not, which is a fairly expensive operation.  Due to a flaw, this was actually getting called twice per left click.  I have partially resolved this by making sure that it only calls renderUnitsFast() once, but more can be done to make it faster, like changing the "visibleQuad" to 3x3 area around the clicked cell or something like that (instead of looking at the camera's visible area)]
  • GAE AI not compatible with Indians mod (AI doesn't build/produce units) [status: Fixed in 0.2.7]
« Last Edit: 15 May 2008, 03:12:29 by daniel.santos »

Duke

  • Guest
(No subject)
« Reply #1 on: 5 May 2008, 14:36:51 »
I think there are two things could be included:

- Units housing other units (also graphically)
  This is for transport ships, siege towers and perhaps walkable walls (although that one might need a different mechanism)

- advanced map object interaction. like burning or chopping down forrest without harvesting them first and corresponding: replanting trees.
« Last Edit: 1 January 1970, 00:00:00 by Duke »

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #2 on: 5 May 2008, 20:55:38 »
Nice.

There is a cancel button bug. http://www.glest.org/glest_board/viewtopic.php?t=3441
I think I found the cause but don't know how to fix because of undocumented complexity.
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

daniel.santos

  • Guest
(No subject)
« Reply #3 on: 6 May 2008, 05:05:26 »
thanks guys!
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

@kukac@

  • Guest
topic
« Reply #4 on: 6 May 2008, 06:57:37 »
And what about the release?  :P
« Last Edit: 1 January 1970, 00:00:00 by @kukac@ »

orion

  • Guest
(No subject)
« Reply #5 on: 6 May 2008, 11:27:40 »
Daniel, you also have to make the GAE compatible with the indians. When you play against the indians faction, the computer just harvests more resources without actually producing something.
« Last Edit: 1 January 1970, 00:00:00 by orion »

daniel.santos

  • Guest
(No subject)
« Reply #6 on: 6 May 2008, 20:36:59 »
Quote from: "@kukac@"
And what about the release?  :)  But when we get a bugzilla database, it'll be easier to track which bugs gets/got fixed in which release, etc.

orion, added it to the bug list
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

daniel.santos

  • Guest
(No subject)
« Reply #7 on: 7 May 2008, 00:41:08 »
Quote from: "orion"
Daniel, you also have to make the GAE compatible with the indians. When you play against the indians faction, the computer just harvests more resources without actually producing something.

orion, I played a full game (had FOW off) and watched and they build the whole nine yards, made warriors, attacked, etc.  I used the "megapack_v2" from titusgames.de.  I did this on Linux, but I played a game last night on Windows and didn't have any problems :confused:
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

orion

  • Guest
(No subject)
« Reply #8 on: 7 May 2008, 11:22:20 »
I'm sorry for that. When I looked at the version of the GAE that I was playing, it said V0.2.6. Disregard that.
« Last Edit: 1 January 1970, 00:00:00 by orion »

daniel.santos

  • Guest
(No subject)
« Reply #9 on: 7 May 2008, 18:54:09 »
w00t! I fixed it :)  (maybe?)
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

orion

  • Guest
(No subject)
« Reply #10 on: 14 May 2008, 14:08:47 »
Yep, I believe you fixed it...whatever you did worked.

Another thing, (and I promise this is a real bug), units stop harvesting resources. Frequently, I will find units just standing and doing nothing when they're supposed to be getting resources (mining, wood, etc.)
« Last Edit: 1 January 1970, 00:00:00 by orion »

daniel.santos

  • Guest
(No subject)
« Reply #11 on: 14 May 2008, 21:09:57 »
I'm sure the issue with the Indians mod was real, I've heard it elsewhere.  As far as harvesting, units have a limit as to how far they will look for a new resource of what they are harvesting (and, I know, they will also switch between gold & stone).  If you have gold on the opposite side of your base building (castle/mage tower) and they run out on one side, they aren't going to be able to find the new source so they will stop.

If you are talking about units standing around at the Abbey, that's a different story and that's a real bug.  In the mean time, I recommend you build a shrine in the middle of the abbey's courtyard, right where the fountain is, this will prevent the problem.  What is actually happening here is that the workers are trying to get to the center of the building and, during that process, once they get to a cell that's adjacent to a cell in the building's cellmap that is marked with a 1, then they drop off the supply.  But with the Abbey, the center is walkable (0 value in the cell map) so they get to the center and never find one.  I've got a plan to fix this problem, but haven't gotten around to it yet.
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

orion

  • Guest
(No subject)
« Reply #12 on: 15 May 2008, 11:25:22 »
I'm not talking about how the units stop after there are no more resources. I'm saying that several times, units will stop while there are alot of resources left. I don't know what causes it, but when I find out, I'll give you a "TuxGamer Bug Report". ;)
« Last Edit: 1 January 1970, 00:00:00 by orion »

daniel.santos

  • Guest
(No subject)
« Reply #13 on: 15 May 2008, 18:57:22 »
Are you sure this isn't workers harvesting gold and being stuck at the Abbey?  If not, please do let me know how to reproduce it or at least what happens before they get there, etc.  Also, make sure that this isn't because they are stuck and can't move. :)
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

orion

  • Guest
(No subject)
« Reply #14 on: 16 May 2008, 11:27:44 »
It's not the Abbey thing. I'll figure out what's going on.

PS: goodluck with the multiplayer thing.
« Last Edit: 1 January 1970, 00:00:00 by orion »

orion

  • Guest
(No subject)
« Reply #15 on: 19 May 2008, 16:51:21 »
Ok, I don't know if this is correct, but it seems that the units stop after an upgrade in any particular building. I still need to test it out some more.
« Last Edit: 1 January 1970, 00:00:00 by orion »

daniel.santos

  • Guest
(No subject)
« Reply #16 on: 20 May 2008, 03:50:46 »
interesting, please do let me know
« Last Edit: 1 January 1970, 00:00:00 by daniel.santos »

Jamesgamer

  • Guest
(No subject)
« Reply #17 on: 26 May 2008, 19:26:17 »
Very minor bug (hasn't caused any actual problems for me yet)...

When a unit is blocked by other units from repairing something, they will switch from repair to stop to repair, and sometimes have some sort of order on queue. Doesn't cause any real problem, just aesthetics.
« Last Edit: 1 January 1970, 00:00:00 by Jamesgamer »

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #18 on: 20 June 2008, 00:29:44 »
I think performance issues could be added as another heading in the list.
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

orion

  • Guest
(No subject)
« Reply #19 on: 21 June 2008, 15:45:27 »
The only performance problems that exist is the unit pathing code, which is already listed.
« Last Edit: 1 January 1970, 00:00:00 by orion »

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #20 on: 22 June 2008, 02:51:35 »
I still think it's good to have it as a separate heading, maybe refactoring as a heading.
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

daniel.santos

  • Guest
Re:
« Reply #21 on: 22 October 2008, 08:06:04 »
Quote from: "hailstone"
I think performance issues could be added as another heading in the list.
I'm not sure if it's just my modifications in 0.2.8, but I'm having performance issues when drag-drop selecting.  I've experimented with a few mechanisms and I have one hacky-mechanism that works-around the problem.  I wanted to re-write all of the code for that, for one, so you can drag-drop select units while the game is paused, but I can't figure out the openGL code that does it efficiently - I'm trying to avoid using the renderUnitsFast() function and just calculate which units are selected during the actual rendering (not when the mouseMove event is generated), but I don't think I can set the render mode to both GL_SELECT and GL_RENDER at the same time, so maybe I can figure out something else that's efficient.

Ayrin Greenflag

  • Horseman
  • ****
  • Posts: 188
    • View Profile
    • http://www.lostinn.com/ayrin
Re: To Do List & Bugs
« Reply #22 on: 22 October 2008, 09:21:37 »
i have a question, in map maker you can chose level of terrain from -5 tp +5 if i remember well..it's possible to check this level inside game? I ask this because some unit could be tied to terrain level...the use of this could be the ships unit...example the unit can travel only if terrain is -2 or more ...i think it's possible coz soldiers already walk only if terrain is till -1, but their vertical position is chained to terrain level instead ships could always have the vertical on 0 level ...is my thinking right?

daniel.santos

  • Guest
Re: To Do List & Bugs
« Reply #23 on: 22 October 2008, 20:45:18 »
Close, but ships would simply ignore the changes in terrain level from one cell to the next since they will be floating on the water and the terrain will be below them at that point.  We were discussing the possibilities of this in one of these threads around here :) -- notably, to accommodate units with a more flexible tolerance for below sea-level travel.  One of my points is that very tall units (behemoth, etc.) should be able to travel in -2 depth or so, since they are much taller.  Additionally, a unit may have a separate travel skill for swimming where they travel slower (in the case of ordinary humanoids) or faster (in the case of a possible fishy humanoid) .  I'm in support of having some type of defensibility changes due to terrain too (similar to wesnoth's mechanism), but I wouldn't care to investigate that until the future and would probably be based upon amount of damage taken with certain damage/terrain types as opposed to a "chance of being hit" which is always 100% in Glest/GAE --  although somebody else proposed changing that as well for a modern warfare type of mod.

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
Re: To Do List & Bugs
« Reply #24 on: 22 October 2008, 22:03:12 »
Quote from: "daniel.santos"
as opposed to a "chance of being hit" which is always 100% in Glest/GAE

A hackish way around this in the current GAE code is to set a units damage value to 0 (no damage) and then put all the damage into the units effect with the chance attribute set at less than 100%. This is really a hack since the unit will always hit the target but there is only a percentage chance that its associated effect will cause damage.
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0