0
July 31, 2010, 05:27:45 AM / Newest SVN:    *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Shout Box

[History] [Commands]

[June 27, 2010, 01:29:02 PM] fu: vc deve redirecionar porta 3030 (TCP e UDP) para o seu endereco PC local

[June 27, 2010, 01:31:54 PM] fu: este é o primeiro requisito

[July 06, 2010, 04:42:27 PM] Elvio: hey krom how are you ? how's china 

[July 06, 2010, 04:43:39 PM] Elvio: i just found out that someone deleted my account ! 

[July 06, 2010, 07:48:22 PM] C-D: which account do you mean? probably the one from netpanzer.info..but this forum/site(.org) has nothing to do with netpanzer.info....

[July 07, 2010, 02:37:00 PM] Elvio: oh yes ,  my account on netpanzer.info had been deleted by the hackers  or lohengrin . Don't know why   

[July 08, 2010, 04:26:07 PM] Elvio: does anyone know how to use the netpanzer dedicated server to create a server and amend the units reload tie 

[July 08, 2010, 08:00:22 PM] Elvio: how to transfer port 3030 to my machine ? 

[July 08, 2010, 09:20:29 PM] fu: Elvio you must access your modem/router control panel and look for "lan setup,nat, virtual server" or similar

[July 08, 2010, 09:21:24 PM] fu: look for "port forwarding" in Google and you'll find many examples

[July 09, 2010, 05:38:18 PM] Elvio: sorry Fu . I have searched many informations about the forwards port  thing , but it doesn't work on my pc , don't know what has happened . And  i don't know how to access to my modem / router control panel (i could but couldn't find the lan set up , 

[July 09, 2010, 05:38:35 PM] Elvio: since my OS is Window 7 , not linux 

 
Pages: [1]
  Print  
Author Topic: Flag sharing  (Read 1491 times)
0 Members and 1 Guest are viewing this topic.
krom
Administrator
Sergeant
*****
Posts: 485

Thank You
-Given: 14
-Receive: 25



on: October 22, 2008, 08:24:14 PM �

As svn version 1080 there is flag sharing in netpanzer. It is not a final version and there are some points that needs to know.

The server doesn't need to have flags now, it doesn't load them. The server will use whatever flag the clients send to it.

There is no checking for same flags (later) so, in this version can have several players with the same flag.

The protocol is not compatible with previous versions, if you update you won't be able to play on older netpanzer version nor will older netpanzer version be able to connect to your server.

In the configuration file, "playerflag" now is the flag file name (without path, example: "albania.bmp"), the file has to be in the flags folder and has to be 20x14 (not checked right now). If you plan to do your own flag, you have to know that the palette has to be the same as the other flags, otherwise the colors will be wrong. Also, not all the programs can make the bmp format that is supported by netpanzer, I don't remember very clear, "maybe" GIMP or mspaint can save the correct format.

Because the server allocates and releases the flags codes as the players connect, the flags that will be shown on the netpanzer server browsers will be wrong (Abitos should check if protocol version is > 1019 and in that case don't show flags).

I'm on a business trip and only have a laptop with windows, so I'm unable to test on linux or mac, nor test the compilation with "jam".

Thats all I can remember now.
Last Edit: March 28, 2009, 03:27:09 AM by krom Logged

The rabbit doesn't fly alone
C-D
Administrator
Gunner
*****
Gender: Male
Posts: 113

Thank You
-Given: 31
-Receive: 11



Reply #1 on: October 23, 2008, 12:56:15 PM �

very nice, iam testing it right now on an linux server..seems to working at least for me^^
Logged
krom
Administrator
Sergeant
*****
Posts: 485

Thank You
-Given: 14
-Receive: 25



Reply #2 on: October 23, 2008, 01:08:38 PM �

In svn 1081 there is a fix for linux compilation, you may already have it.

It may have some crash, I created a server "Devil Test".
Logged

The rabbit doesn't fly alone
C-D
Administrator
Gunner
*****
Gender: Male
Posts: 113

Thank You
-Given: 31
-Receive: 11



Reply #3 on: October 23, 2008, 01:24:55 PM �

svn 1081 ..error when i starting to move my units with new flags:
..
2008-10-23 13:23:49 Received flag is not registered: 2
2008-10-23 13:23:50 Received flag is not registered: 2
2008-10-23 13:23:50 Received flag is not registered: 2
2008-10-23 13:23:52 Invalide netMessageConnectID Message
netpanzer: src/NetPanzer/Units/UnitInterface.hpp:94: static size_t UnitInterface::getUnitCount(short unsigned int): Assertion `(player_index < max_players)' failed.
Received signal SIGABRT(6)
aborting and trying to shutdown.
Aborted (core dumped)
meazle@ubuntu:~/netpanzer$                                 


or:
..
2008-10-23 13:30:09 Received flag 0 synchronization
2008-10-23 13:30:09 Received flag 0 synchronization
2008-10-23 13:30:09 Received flag 0 synchronization
2008-10-23 13:30:09 Received flag 0 synchronization
2008-10-23 13:30:09 Received flag 0 synchronization
2008-10-23 13:30:09 Received flag 0 synchronization
Setting colors
unitAqua is 229
white is 255
2008-10-23 13:30:11 Invalide netMessageConnectID Message
netpanzer: src/NetPanzer/Units/UnitInterface.hpp:94: static size_t UnitInterface::getUnitCount(short unsigned int): Assertion `(player_index < max_players)' failed.
Received signal SIGABRT(6)
aborting and trying to shutdown.
Aborted (core dumped)
meazle@ubuntu:~/netpanzer$       
Last Edit: October 23, 2008, 01:32:46 PM by C-D Logged
krom
Administrator
Sergeant
*****
Posts: 485

Thank You
-Given: 14
-Receive: 25



Reply #4 on: October 23, 2008, 03:19:11 PM �

Ok, you can try now, is my fault.

In the instructions (in svn log) I said should do a "jam clean" and then "jam" to rebuild it. I didn't do the clean, and it was using some old values in half of the code, now (with recompilation of server) i can move without error.
Logged

The rabbit doesn't fly alone
krom
Administrator
Sergeant
*****
Posts: 485

Thank You
-Given: 14
-Receive: 25



Reply #5 on: October 23, 2008, 04:26:59 PM �

It is very important to do a full recompile
Code:
# jam clean
# jam

Otherwise will confuse game.
Logged

The rabbit doesn't fly alone
wile64
Corporal
*****
Gender: Male
Posts: 180

Thank You
-Given: 11
-Receive: 14



WWW
Reply #6 on: October 23, 2008, 05:12:24 PM �


Is not it early to no longer be compatible with old Version?

For the moment I not change to 1080, no more server svn for play.
Logged

"If debugging is the art of removing bugs, then programming must be the art of creating!"
krom
Administrator
Sergeant
*****
Posts: 485

Thank You
-Given: 14
-Receive: 25



Reply #7 on: October 23, 2008, 05:20:59 PM �

Yes, little early maybe, but I see still people wants the flag sharing function.

I might make a windows test version so other players can test it too.
Logged

The rabbit doesn't fly alone
wile64
Corporal
*****
Gender: Male
Posts: 180

Thank You
-Given: 11
-Receive: 14



WWW
Reply #8 on: December 29, 2008, 04:52:00 PM �

I have tried this,

Great job Krom  Cool

Logged

"If debugging is the art of removing bugs, then programming must be the art of creating!"
Pages: [1]
  Print  
 
Jump to:  

Theme by m3talc0re. Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC MySQL | PHP | XHTML | CSS
Back To Top