Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Gates #1179

Closed
Closed

Description

@wzdev-ci

keyword_gates resolution_fixed type_patch (an actual patch, not a request for one) | by Per


This experimental patch implements gates. It is currently a proof of concept, but it does work. Sort of. Placeholder gate graphics by Mysteryem.

Gates are implemented as a kind of wall that lowers itself into the ground once a friendly (currently same player) unit attempts to cross it. There is currently not corner version of gates. They open/close individually, but all connected gates should probably open/close as one. They should not close when units are standing on top of them (oops!). No idea when they should appear in tech tree - currently at the same time as hardcrete wall.


Issue migrated from trac:1179 at 2022-04-15 20:12:28 -0700

Activity

  1. wzdev-ci commented on Dec 12, 2009

    @wzdev-ci
    ContributorAuthor

    Per uploaded file gate1.diff (21.4 KiB)

    Experimental gate patch. Not for production use. May eat your kitten. Warranty void if read.

  2. wzdev-ci commented on Dec 12, 2009

    @wzdev-ci
    ContributorAuthor

    BlueMaxima commented


    May eat your kitten? ROFL.

    Sounds good though.

  3. wzdev-ci commented on Dec 13, 2009

    @wzdev-ci
    ContributorAuthor

    stiv commented


    Just played with this a little bit. Cool feature!

  4. wzdev-ci commented on Feb 4, 2010

    @wzdev-ci
    ContributorAuthor

    Per uploaded file gates3.diff (19.1 KiB)

    New version with general improvements. Now does not close when droid is on top. Only code changes included. Need new model that is rotated the same way as walls.

  5. wzdev-ci commented on Feb 4, 2010

    @wzdev-ci
    ContributorAuthor

    Per uploaded file gatedata.diff (3.4 KiB)

    Sample gate data for testing, reuses existing wall model. Stealth walls!

  6. wzdev-ci commented on Feb 4, 2010

    @wzdev-ci
    ContributorAuthor

    Per commented


    I meant stealth gates.

  7. wzdev-ci commented on Feb 18, 2010

    @wzdev-ci
    ContributorAuthor

    Per commented


    (In [9854]) Add backend support for gates using new REF_GATE structure type. See #1179 for more info.

  8. wzdev-ci commented on Feb 18, 2010

    @wzdev-ci
    ContributorAuthor

    Git SVN Gateway <gateway@...> commented


    (In Warzone2100/warzone2100@9632b1b) Add backend support for gates using new REF_GATE structure type. See #1179 for more info.

    git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9854 4a71c877-e1ca-e34f-864e-861f7616d084

  9. wzdev-ci commented on Feb 18, 2010

    @wzdev-ci
    ContributorAuthor

    Per uploaded file gates.wz (28.4 KiB)

    Actually working stealth gates mod

  10. wzdev-ci commented on Feb 18, 2010

    @wzdev-ci
    ContributorAuthor

    KukY commented


    lol, they change colours.

  11. wzdev-ci commented on Feb 18, 2010

    @wzdev-ci
    ContributorAuthor

    Per commented


    What? Screenshot, please.

  12. wzdev-ci commented on Feb 18, 2010

    @wzdev-ci
    ContributorAuthor

    MaNGusT commented


    What type of animation does it use? What do I need to do to get my model to open a gate? or is it still harcoded and doesn't use event-driven animation?

  13. wzdev-ci commented on Feb 19, 2010

    @wzdev-ci
    ContributorAuthor

    Per commented


    It is a new hardcoded animation, although I wrote in such a way that it should be easy to generalize in the future. If the model has the type "GATE", then it will lower itself into the ground once a friendly unit tries to pass it, then raise itself later.

  14. wzdev-ci commented on Feb 26, 2010

    @wzdev-ci
    ContributorAuthor

    MaNGusT commented


    I've found a bug. When it lowers itself, it also lowers its baseplate model :(

    Also, pathfind works very bad with gates. Units don't know that a gate is a "door", they think that it is a wall. Only when gate is opened, units see that they can pass through. :/

  15. wzdev-ci commented on Feb 26, 2010

    @wzdev-ci
    ContributorAuthor

    Per commented


    I did not think about the base plate. Will fix.

    The path finding should work for your own (and I think allied) units, and I tested that before I committed. How do you tell that it is not working?

  16. 3 remaining items

  17. wzdev-ci commented on Mar 22, 2010

    @wzdev-ci
    ContributorAuthor

    Per commented


    One last thing that needs fixing before this ticket can be closed - the open/close animation is not adapted to the logic/graphic separation, and needs to use the new graphical interpolation functions to avoid the appearance of jerkiness.

  18. wzdev-ci commented on Mar 22, 2010

    @wzdev-ci
    ContributorAuthor

    Berg commented


    don't know if this is related but i had several trucks selected and went to click on gate icon in build menu the cursor stayed a target like when you direct units to a position.
    anyway this is what i had in console after crash

    info |10:07:07: [clearPlayer] R.I.P. Blue (5). quietly is true
    info |10:07:07: [clearPlayer] R.I.P. Green (6). quietly is true
    info |10:07:07: [clearPlayer] R.I.P. Cyan (7). quietly is true
    error |10:31:02: [buildStructure] Player 0 (Human): is building A0HardcreteMk1Gate at (73, 78) but found A0HardcreteMk1Wall already at (73, 78)
    error |10:31:02: [droidUpdateBuild] Trying to update a construction, but no target!
    error |10:31:02: [droidUpdateBuild] Assert in Warzone: droid.c:1070 (psDroid->psTarget != NULL), last script event: 'N/A'
    warzone2100: droid.c:1070: droidUpdateBuild: Assertion `psDroid->psTarget != ((void *)0)' failed.
    Saved dump file to '/tmp/warzone2100.gdmp-M3tiat'
    If you create a bugreport regarding this crash, please include this file.
    Aborted

    thats just the end of the console output where error was i think

  19. wzdev-ci commented on Mar 22, 2010

    @wzdev-ci
    ContributorAuthor

    Berg commented


    crashdump total
    http://pastebin.com/c9ckV2vZ

  20. wzdev-ci commented on Mar 22, 2010

    @wzdev-ci
    ContributorAuthor

    MaNGusT uploaded file gateh.wz (152.1 KiB)

    gates with baseplate

  21. wzdev-ci commented on Mar 22, 2010

    @wzdev-ci
    ContributorAuthor

    MaNGusT commented


    Replying to Warzone2100/old-trac-import#1179 (comment:12):

    MaNGusT - I do not see how a gate could be drawn with a base plate at all with the current code. Do you have a model I can test with?
    Grab it. ;-)
    To see baseplate I've added some parameters to the "structures.txt"

  22. wzdev-ci commented on Mar 23, 2010

    @wzdev-ci
    ContributorAuthor

    Git SVN Gateway <gateway@...> commented


    (In Warzone2100/warzone2100@f88bf76) Add gates to the game. Model by Mysteryem. May have to be re-balanced a bit. Feedback welcome. See #1179 for more info.

    git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10407 4a71c877-e1ca-e34f-864e-861f7616d084

  23. wzdev-ci commented on Mar 23, 2010

    @wzdev-ci
    ContributorAuthor

    icefire uploaded file netgate.jpg (203.2 KiB)

    Seems to be some issues on the state of the gates over netplay
    netgate.jpg

  24. wzdev-ci commented on Apr 22, 2010

    @wzdev-ci
    ContributorAuthor

    Buginator commented


    adding myself to ticket.

  25. wzdev-ci commented on Oct 14, 2010

    @wzdev-ci
    ContributorAuthor

    Git SVN Gateway <gateway@...> commented


    In Warzone2100/warzone2100@9632b1b:

    #CommitTicketReference repository="" revision="9632b1bf5026ad79a3f87dc797920f0906970abb"
    Add backend support for gates using new REF_GATE structure type. See #1179 for more info.
    
    
    git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9854 4a71c877-e1ca-e34f-864e-861f7616d084
    
  26. wzdev-ci commented on Oct 14, 2010

    @wzdev-ci
    ContributorAuthor

    Git SVN Gateway <gateway@...> commented


    In Warzone2100/warzone2100@f88bf76:

    #CommitTicketReference repository="" revision="f88bf760006753a2bc84808bddaee27908e2f294"
    Add gates to the game. Model by Mysteryem. May have to be re-balanced a bit. Feedback welcome. See #1179 for more info.
    
    
    git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10407 4a71c877-e1ca-e34f-864e-861f7616d084
    
  27. wzdev-ci commented on Jan 27, 2011

    @wzdev-ci
    ContributorAuthor

    Per changed status from new to closed

  28. wzdev-ci commented on Jan 27, 2011

    @wzdev-ci
    ContributorAuthor

    Per changed resolution from `` to fixed

  29. wzdev-ci commented on Jan 3, 2012

    @wzdev-ci
    ContributorAuthor

    cybersphinx changed milestone from 3.0 to unspecified

  30. wzdev-ci commented on Jan 3, 2012

    @wzdev-ci
    ContributorAuthor

    cybersphinx commented


    Milestone 3.0 deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions