Technopolies

Started by rolz, October 21, 2004, 04:03:43 PM

Previous topic - Next topic

EgonOlsen

A version with the option to change OpenGL's transparency behaviour is here: http://www.jpct.net/download/jpct_108a1.jar (look at Config.glTransparencyOffset and Config.glTransparencyMul). It should also fix the billboarding flaw.

EgonOlsen

I have noticed a bug with the decorations when switching worlds. After switching from Olbridge to Evergreen Forest, the decorations are floating in the air (http://www.jpct.net/img/proj/technobug.jpg). The settings i used (in case that matters somehow):

game.terrain.animation.enabled=true
game.terrain.decorations.range=90

rolz

weird........

does it happens ocassionally or it is stable reproducible ?
Regards,
Andrei

rolz

btw, i did not found api docs that explain those glTransparencyXXX parameters, could you please give some more details ?
Regards,
Andrei

EgonOlsen

Oops, my fault. Here's the section from Config:

/*
Transparency in OpenGL is implemented in a way that tries to mimic the software renderer. If one is using OpenGL only or can live with different output, the offset in the formula used to calculate the actual transparency from an object's transparency value can be changed to broaden the range. The actual formula is trans=offset+objTrans*mul, default for offset is 0.7f. This setting is ignored by the software renderer.
*/
  public static float glTransparencyOffset=0.7f;

/*
Transparency in OpenGL is implemented in a way that tries to mimic the software renderer. If one is using OpenGL only or can live with different output, the multiplicator in the formula used to calculate the actual transparency from an object's transparency value can be changed to broaden the range. The actual formula is trans=offset+objTrans*mul, default for mul is 0.06f. This setting is ignored by the software renderer.
*/
  public static float glTransparencyMul=0.06f;


About the floating decorations: It doesn't happen every time, but quite often. Leaving and reentering the level doesn't fix it.

Remo

Sometimes when I get into a fight the game freezes. I dont know what it is but in the map I can still move but its not shown in the screen. The map keeps working just  not the main screen.

rolz

looks like awt thread falls out with exception. is there anything in log file ?
Regards,
Andrei

EgonOlsen

Are you sure that your redirecting to the log file works for stderr? I always had to change it to "2>log.txt" to get stderr messages IIRC.

Remo

Quote from: "rolz"looks like awt thread falls out with exception. is there anything in log file ?

The log file is clear.

rolz

new features preview. Additional notification will be sent later when server will be updated

Picking a sword from the ground



Inventory screen
Regards,
Andrei

EgonOlsen

I just started the client to see if something has changed during my holidays, but it downloads everthing each time i'm starting it (showing stuff like "lwjgl.dll 1576KB/0KB" which is a bit strange) and then hangs when trying to connect to the server (i.e. nothing happens anymore). Any ideas?

rolz

well, i was not that lucky this month ;) Had to cancel all plans on summer vacations and stay 7/12 on day job to meet the deadline

So far technopolies server is not working, i think the estimate for getting it back is 1-2 weeks.
Regards,
Andrei

rolz

Some new features for tomorrow's build:

- the communication for server/client was redesigned to be event-driven. I hope this will make adding new functionality to the server game much easier.

- redone most of the previous functionality using events (move, attack, pick, equip, etc..)

- redesigned network code to use on-the-fly compression where applicable

- players can now equip/unequip objects

- added shadows to players, objects on the ground, trees and bushes (see new parameters in techno.properties)

- added 2 new weapons - SledgeHammer and the PowerHammer

- added explosion effects (see it when you equip the PowerHammer)

- added footprints on the ground

some screenshots:

closer look


the big picture


some explosions, and look at the bots below - there are footprints on the ground !


SledgeHammers in action !
Regards,
Andrei

rolz

Regards,
Andrei

EgonOlsen

Tested the new version on a Linux box (Debian) and it worked just fine. I got some exceptions, but that may be the case in Windows too... :?:

java.lang.ArrayIndexOutOfBoundsException: 1517
       at aS.a_(Unknown Source)
       at bk.b(Unknown Source)
       at bk.d(Unknown Source)
       at techno.client.world3d.Client3D.run(Unknown Source)
       at techno.client.world3d.Client3D.main(Unknown Source)
java.lang.NullPointerException
       at O.a_(Unknown Source)
       at bk.b(Unknown Source)
       at bk.d(Unknown Source)
       at techno.client.world3d.Client3D.run(Unknown Source)
       at techno.client.world3d.Client3D.main(Unknown Source)


It ran quite slow, but that's not much surprising because the system is a Pentium II 400Mhz with a TNT2-32MB graphics card. But it was still playable...