mechwar 1.0 released :)
valdir salgueiro

mechwar, is an online game, up to 32 players

http://www.vnsbr.xpg.com.br/mechwar1.0.rar [1.16 MB, source with binaries]
http://www.vnsbr.xpg.com.br/client.rar [70.5 KB, 1.1 patch]

http://www.vnsbr.xpg.com.br/mp3.part1.rar
http://www.vnsbr.xpg.com.br/mp3.part2.rar
http://www.vnsbr.xpg.com.br/mp3.part3.rar [optional tracks, extract them to the mp3 folder)

http://www.vnsbr.xpg.com.br/mapeditor.rar [extract to mapeditor, the folder must be at the same directory as the game]

keys for mapeditor
C -> "cleans" the screen
del -> saves
esc -> leaves the program

the changes are saved to ./maps/mapa2.txt

screens (note that the game has changed a bit, since the screens have been taken)

{"name":"newscreenie3.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/7\/972ca63210a854d217a18b50a7600763.jpg","w":320,"h":240,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/7\/972ca63210a854d217a18b50a7600763"}newscreenie3.jpg

{"name":"newscreenie2.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/7\/2706cf328c709efd61accdf5617ab290.jpg","w":320,"h":240,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/2\/7\/2706cf328c709efd61accdf5617ab290"}newscreenie2.jpg
blood mode on ^^, actually it uses the donkey bolonko particle system

{"name":"newscreenie.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/e\/bec5a05ddb0b8b8a380d8db7e26f9b5a.jpg","w":320,"h":240,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/b\/e\/bec5a05ddb0b8b8a380d8db7e26f9b5a"}newscreenie.jpg

controls
directionals -> moves the player
SHIFT -> shoots
enter -> uses the jetpack
TAB -> show players along with their kills and deaths (it used to show the ping aswell, but i deactivated it, due to some 56k bugs =p)
F -> FPS ON/OFF
P -> BLOOD ON/OFF
T -> for cheats
+/- (number pad) -> increases/decreases speed of the packet sending rate, the default is 20 times/sec (although its supposed you are playing via LAN)

how to play
open server.exe(don´t forget to leave it open =P), then give your ip (local or external) to someone else, so he/she cans join your game

System requirements
->this game has not been testplayed on slow computers but it should run well, i hope :)
->good connection speed (as said above, it was tested on LAN connections, but it did run on 56k connections, not as well, but it did =P)

have fun :)

Todd Cope

Nice game. Seems to be okay, but I only played with 2 windows opened on my computer, not actual multiplayer. I noticed a small bug, players connected later than you won't see you until after you move. You can remain invisible to new players by not moving then sneak attack them when they get close to you.

Also, there is no fmp3 folder to put the music in. I made one and put the music there but it doesn't play.

I will have to try this game later when someone has a server up.

valdir salgueiro

sorrry typo error :( i meant 'mp3' instead of 'fmp3'

the second bug is because its meant to save as much bandwidth as possible, but ill try to sync them on the beggining thanks for the report :)

EDIT--

i though it came with the mapeditor

the link is http://www.vnsbr.xpg.com.br/mapeditor.rar, i also updated the main post

Felipe Maia

Looks good. You have a timer error tough, when the game starts the game runs twice as fast and then it stabilizes.

valdir salgueiro
Filipe Maia said:

Looks good. You have a timer error tough, when the game starts the game runs twice as fast and then it stabilizes.

i dunno why, but when i was testing without the rest´s for the introduction, it didnt happened (maybe an allegro bug?), i think i will have to rewrite the presentation with using something else instead rest()'s..

miran
Quote:

i dunno why, but when i was testing without the rest´s for the introduction, it didnt happened (maybe an allegro bug?), i think i will have to rewrite the presentation with using something else instead rest()'s..

Let me guess. You have a timer callback that increments a variable. You install this callback at the beginning of the program. Then you rest for a while. As you rest the timer callback is being called many times incrementing the timer counter. When the rest is done, the value of the timer counter is in the hundreds or thousands. You then do the main loop in which the logic code is executed many times in a row to bring the timer counter back down to 0. Am I right? If so, then the solution is to reinitialize the timer counter to 0 after every long rest.

Elverion

I see you changed SHIFT to be the suicide button, huh?

It looks like you are mixing up the "owner" of the shot bullet, so when you shoot, it thinks the bullet under you is the enemies and it damages you.

Other than that, it looks good so far. What are your plans for future updates?

valdir salgueiro
Quote:

Let me guess. You have a timer callback that increments a variable. You install this callback at the beginning of the program. Then you rest for a while. As you rest the timer callback is being called many times incrementing the timer counter. When the rest is done, the value of the timer counter is in the hundreds or thousands. You then do the main loop in which the logic code is executed many times in a row to bring the timer counter back down to 0. Am I right? If so, then the solution is to reinitialize the timer counter to 0 after every long rest.

thanks i fixed it, i also fixed the other bugs mentioned here, thanks all :)

heres the patch to 1.1 [url=http://www.vnsbr.xpg.com.br/client.rar]

Quote:

I see you changed SHIFT to be the suicide button, huh?

It looks like you are mixing up the "owner" of the shot bullet, so when you shoot, it thinks the bullet under you is the enemies and it damages you.

Other than that, it looks good so far. What are your plans for future updates?

i didnt notice that bug yet, but im looking for it, it happens all the time? i havent been hurt by my own bullet yet, weird

ill try to change the game to UDP, improve the deadreckoning, and maybe put some more weapons types :)

Elverion

Yes, it happened everytime I pushed the SHIFT key. Even with only one player, and it would say "Player killed by <you>" or something along those lines. With 2 "players" connected, I could not even see the other player shoot a bullet or anything. They just wen't poof and the screen on that client went black.

valdir salgueiro

thanks, i'll take a look

looks like the server had a probleming resolving the players id, which´s weird, its not 100% bugfree, but its something that has been playtested

Steve Terry

I was getting strage latency issues and I was on localhost. Sometimes you would be pressing left or right or enter and nothing would happen until a few seconds later.

Thread #586758. Printed from Allegro.cc