PDA

View Full Version : CVS Commit, March 18, 2002



Zaphod
03-18-2002, 02:28 PM
dohpaZ (18/03/02)
------------------
Modifications:
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.[list=a]
"Distance Based" where its size is based on an actual distance along a horizontal plane from the player.
"Scaled Classic" where its size is based on the classic formula a simple scale applied to compensate for zoom.
"Classic" where the size uses the old, meaningless, non-scaled classic formula.
[/list=a]

Enjoy,
Zaphod (dohpaZ)-

S_B_R
03-18-2002, 07:13 PM
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 :D

fryfrog
03-19-2002, 02:23 AM
perhaps i'm doing something... but one of the --options doesn't work...



[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'
...

fryfrog
03-19-2002, 02:24 AM
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.

avgjoe
03-19-2002, 10:01 AM
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

Zaphod
03-19-2002, 10:22 AM
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)

fryfrog
03-19-2002, 02:32 PM
thank you very much, ill apply that to my script :)