Results 1 to 7 of 7

Thread: CVS Commit, March 18, 2002

  1. #1
    Registered User Zaphod's Avatar
    Join Date
    Dec 2001
    Posts
    648

    CVS Commit, March 18, 2002

    dohpaZ (18/03/02)
    ------------------
    Modifications: [list][*]Map optimizations. Switched from using {QPixmap, QWidget}::drawPixmap() to bitBlt() for copying pixmap data around and to screen. Also, cache the item->filterFlags() value on the stack for slightly faster access. The bitBlt optimization MAY help those seeing lockups.[*]Changed default spawn save frequency, and updated showeq.conf.dist to reflect the new default (saves spawns every 60 seconds).[*]Optimized how spawn information was saved and added a magic number to the beginning of it's file.[*]Added FOV Mode selection to the map, with three options: Distance Based (default), Scaled Classic, and Classic. This controls the style of player background/field of view display.
    1. "Distance Based" where its size is based on an actual distance along a horizontal plane from the player.
    2. "Scaled Classic" where its size is based on the classic formula a simple scale applied to compensate for zoom.
    3. "Classic" where the size uses the old, meaningless, non-scaled classic formula.[/list=a]


    Enjoy,
    Zaphod (dohpaZ)-
    Chief Software Engineer of the Apocalypse.
    http://showeq.doomed.to/
    SourceForge.net user: dohpaz.

    Personal thank you donations are now accepted.

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    849
    Hey Zaphod, since you are on such a Rampage here (thanks BTW) how about saving the Zoom level on a Per map basis? that's been requested several times I think.

    Anyway, Great Job Big Z

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    951
    perhaps i'm doing something... but one of the --options doesn't work...

    Code:
    [root@mystique bin]#./showeq --help
    ...
     The following four options should be used with extreme care!
          --restore-decode-key              Restores the decode key from
                                            a previous session
          --restore-player-state            Restores the player state
                                            from a previous session
          --restore-player-spawns           Restores the spawns
                                            from a previous session
          --restore-player-all              Restores decode key,
                                            player state, and spawns
                                            from a previous session
    
    [root@mystique bin]#./showeq --restore-player-all
    ...
    ./showeq: unrecognized option `--restore-player-all'
    ...

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    951
    odd, i couldn't edit my own post...

    i just wanted to add that i THINK using all 3 of the --options works, its just the --all option that doesn't seem to.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    Gonna go out on a limb here:

    Given the following section in the showeq.conf

    [SaveState]
    ..
    PlayerState 1 # Save the current player state
    Spawns 1 # Save the spawn list (not yet implemented)
    SpawnsFrequency 60000 # number of milliseconds between spawn list saves
    ..
    ..

    It seems to me that the following options will not function at this time:

    --restore-player-spawns
    --restore-player-all

  6. #6
    Registered User Zaphod's Avatar
    Join Date
    Dec 2001
    Posts
    648

    Red face

    The spawn save is functional, I just forgot to remove that comment "(not yet implemented)" from showeq.conf.dist before checking in.

    As to the command line options:
    --restore-player-spawns ==> --restore-spawns
    --restore-player-all ==> --restore-all

    I forgot to update the help when I switched the names... At least I try to keep the help and showeq.conf.dist vaguely up to date...

    They don't say the source is the best documentation for nothing.

    These cosmetic issues will be fixed in my next checkin...

    Enjoy,
    Zaphod (dohpaZ)
    Chief Software Engineer of the Apocalypse.
    http://showeq.doomed.to/
    SourceForge.net user: dohpaz.

    Personal thank you donations are now accepted.

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    951
    thank you very much, ill apply that to my script :)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is On
vB code is On
Smilies are On
[IMG] code is On