External Lobby support

Everything related to the code /
Tout ce qui touche au code
Post Reply
User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

External Lobby support

Post by zuzuf » Fri May 02, 2008 1:34 pm

External Lobbies are supported through a file given as command line parameter. It is a simple tdf file (you can give it any extension, only its internal structure is important). This file can override current mod, the map selected, game script, Fog Of War, game name.

To start a server, you need a file like this:

Code: Select all

[TA3D]
{
 Network game = true;
 Server = true;
 Server name = hello world;      // If you omit this field, the server will wear your player's name
 Mod = ;      // Means no mod (you can omit this field)
 Map = maps/caldera's rim.tnt;      // the full path from archives root to the map .tnt file, important : use / not \, otherwise it won't be read properly
 FOW = 3;     // Enabled :)
}
then call "./ta3d --file-param param.tdf" to start the server

on client side:

Code: Select all

[TA3D]
{
 Network game = true;
 Mod = ;                   // You can omit it, but it's better to tell TA3D which mod we want in order to avoid conflicts
 Server name = 192.168.1.135;      // The server IP address or a name (uses DNS)
}
then call "./ta3d --file-param param.tdf" to join the server !
=>;-D Penguin Powered

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Sun May 11, 2008 7:50 pm

This isn't really suitable because unless the user has extracted the maps out into the maps folder the lobby isn't going to be able to tell what map is being played.

As for mods, the same thing applies.

What would be useful is if I could run ta3d using a command line parameter that would make it print out a list of mods and another for listing maps that didn't actually start TA3D. Or if it were printed to a file.

I and the other lobby developers have a lot of things to implement, and by doing better at it, we're pushing the work load of the other rival lobby devs up as well as we all have to compete. If you can make it easier in any way It would be much appreciated.

So far you have a very nice and simple system up, and I'd like to implement this but I cant rewrite unitsync.dll to do for TA3D what it does for spring =(

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun May 11, 2008 7:53 pm

You can get map list by calling "hpiview show maps\\*.tnt"
but for mods, it's a bit more difficult
available mods are subdirs of ta3d/mods/
=>;-D Penguin Powered

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Sun May 11, 2008 7:58 pm

Do you know where I can find a copy of hpiview?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun May 11, 2008 8:12 pm

in a TA3D package :D, it's part of the project :)

maybe one day I should just merge it with ta3d-bin, it'd reduce package size.
=>;-D Penguin Powered

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Sun May 11, 2008 8:19 pm

What format does it output? Can you give me an example? I don't have a collection of maps to test it with.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun May 11, 2008 8:24 pm

it looks like this: (note it also gives you campaign maps, that will be played without their mission script since you can chose the script you want to play)

Code: Select all

maps\(pp)soleil de plomb.tnt
maps\a gentle time.tnt
maps\a plethora of ponds.tnt
maps\a shortage of water.tnt
maps\abysmal lake.tnt
maps\ac01.tnt
maps\ac02.tnt
maps\ac03.tnt
maps\ac04.tnt
maps\ac05.tnt
maps\ac06.tnt
maps\ac07.tnt
maps\ac08.tnt
maps\ac09.tnt
maps\ac10.tnt
maps\ac11.tnt
maps\ac12.tnt
maps\ac13.tnt
maps\ac14.tnt
maps\ac15.tnt
maps\ac16.tnt
maps\ac17.tnt
maps\ac18.tnt
maps\ac19.tnt
maps\ac20.tnt
maps\ac21.tnt
maps\ac22.tnt
maps\ac23.tnt
maps\ac24.tnt
maps\ac25.tnt
maps\air assault.tnt
maps\ambush on novespin iv.tnt
maps\ancient issaquah.tnt
maps\anteer strait.tnt
maps\apocalypse city 3.tnt
maps\apocalypse city2.tnt
maps\aqua verdigris.tnt
maps\ashap plateau.tnt
maps\attack on barrack.tnt
maps\backs to the sea.tnt
maps\barriers.tnt
maps\battle of ansapp sea.tnt
maps\battle of chimo island.tnt
maps\bertha cleansing.tnt
maps\between two lakes.tnt
maps\black box.tnt
maps\brawler buildup.tnt
maps\brilliant cut lake.tnt
maps\caldera's rim.tnt
maps\can rush.tnt
maps\canal crossing.tnt
maps\capture hanan base.tnt
maps\capturing terseknos.tnt
maps\caranat conquest.tnt
maps\cc01.tnt
maps\cc02.tnt
maps\cc03.tnt
maps\cc04.tnt
maps\cc05.tnt
maps\cc06.tnt
maps\cc07.tnt
maps\cc08.tnt
maps\cc09.tnt
maps\cc10.tnt
maps\cc11.tnt
maps\cc12.tnt
maps\cc13.tnt
maps\cc14.tnt
maps\cc15.tnt
maps\cc16.tnt
maps\cc17.tnt
maps\cc18.tnt
maps\cc19.tnt
maps\cc20.tnt
maps\cc21.tnt
maps\cc22.tnt
maps\cc23.tnt
maps\cc24.tnt
maps\cc25.tnt
maps\charging the line.tnt
maps\cleanup on kral.tnt
maps\cloaked in the spires.tnt
maps\cloudious prime.tnt
maps\coast to coast.tnt
maps\com pattern five.tnt
maps\comet catcher.tnt
maps\coordinated assault.tnt
maps\core polaris.tnt
maps\coremageddon.tnt
maps\corepr~1.tnt
maps\crawling destruction.tnt
maps\crossing arnen inlet.tnt
maps\crossing kerrap shallows.tnt
maps\crossing the long lakes.tnt
maps\crossing two rivers.tnt
maps\crystal cracked.tnt
maps\cutoff in sector 6895.tnt
maps\dark side.tnt
maps\dawn directive.tnt
maps\destroy the fmd.tnt
maps\disintegrator alley.tnt
maps\dogfight over grantham deep.tnt
maps\duel.tnt
maps\emerald seamount.tnt
maps\encounter on the coral sea.tnt
maps\etorrep glacier.tnt
maps\evad river confluence.tnt
maps\exp1ac01.tnt
maps\exp1ac02.tnt
maps\exp1ac03.tnt
maps\exp1ac04.tnt
maps\exp1ac05.tnt
maps\exp1ac06.tnt
maps\exp1ac07.tnt
maps\exp1ac08.tnt
maps\exp1ac09.tnt
maps\exp1ac10.tnt
maps\exp1ac11.tnt
maps\exp1ac12.tnt
maps\exp1cc01.tnt
maps\exp1cc02.tnt
maps\exp1cc03.tnt
maps\exp1cc04.tnt
maps\exp1cc05.tnt
maps\exp1cc06.tnt
maps\exp1cc07.tnt
maps\exp1cc08.tnt
maps\exp1cc09.tnt
maps\exp1cc10.tnt
maps\exp1cc11.tnt
maps\exp1cc12.tnt
maps\fighting under fire.tnt
maps\firebase prasad.tnt
maps\firebase.tnt
maps\force the strait.tnt
maps\forest base 129.tnt
maps\fortitude race.tnt
maps\fox holes.tnt
maps\fractured island ii.tnt
maps\fractured island.tnt
maps\fragged.tnt
maps\full moon.tnt
maps\gods of war.tnt
maps\great divide ii.tnt
maps\great divide.tnt
maps\greenhaven.tnt
maps\guardian hill.tnt
maps\guditha pass.tnt
maps\hot day and hull down.tnt
maps\hundred isles.tnt
maps\hunting nhanons.tnt
maps\ice base assault.tnt
maps\ice base baryn.tnt
maps\intimidator ridge.tnt
maps\intimidator rising.tnt
maps\invasion of destral ii.tnt
maps\island hopping.tnt
maps\islands of grace.tnt
maps\jungle journey.tnt
maps\kaki island assault.tnt
maps\kbot mop up.tnt
maps\kill the middle.tnt
maps\king of the hill.tnt
maps\krocark firebase complex.tnt
maps\krogoth encounter.tnt
maps\kudzu base.tnt
maps\laser plain.tnt
maps\lava & two hills.tnt
maps\lava alley.tnt
maps\lava highground.tnt
maps\lava mania.tnt
maps\lava run.tnt
maps\less refreshing sea.tnt
maps\lightning recon.tnt
maps\lipar pass.tnt
maps\long division.tnt
maps\long lakes.tnt
maps\luschie.tnt
maps\luschinfloggen.tnt
maps\luschious.tnt
maps\meraldi amphibious assault.tnt
maps\mesa run.tnt
maps\metal gridlock.tnt
maps\metal heck.tnt
maps\metal isles.tnt
maps\metal maze.tnt
maps\miniement landing.tnt
maps\mist bombers.tnt
maps\mounds of mars.tnt
maps\new moon.tnt
maps\over crude water.tnt
maps\painted desert.tnt
maps\pc games' evad river delta.tnt
maps\peaceful pools.tnt
maps\pincushion.tnt
maps\plains and passes.tnt
maps\pursuit.tnt
maps\quad rivers.tnt
maps\raid on vetes.tnt
maps\rainforest construction.tnt
maps\red hot lava.tnt
maps\red planet.tnt
maps\red triangle.tnt
maps\reducing the yrdac islands.tnt
maps\ring atoll.tnt
maps\river base alpha.tnt
maps\rock alley.tnt
maps\rock candy mountains.tnt
maps\rotrey stream.tnt
maps\scorched oythe.tnt
maps\sea war ffa.tnt
maps\sea war.tnt
maps\seed crystal.tnt
maps\seven islands.tnt
maps\sherwood.tnt
maps\shore to shore.tnt
maps\silent slayers.tnt
maps\sink the battleship.tnt
maps\skirmish on the sand.tnt
maps\solidspire base.tnt
maps\spider ambush.tnt
maps\spire sports.tnt
maps\starfish isle.tnt
maps\steel stronghold.tnt
maps\sub hunting.tnt
maps\surprise at labrodorite.tnt
maps\taking island 445.tnt
maps\the cold place.tnt
maps\the desert triad.tnt
maps\the high ground.tnt
maps\the pass.tnt
maps\the phase array radar.tnt
maps\the ravenstein run.tnt
maps\the retorb floodplain.tnt
maps\the vulcans forge hotspot.tnt
maps\the wayneston ford engagement.tnt
maps\thermal exchange causeway.tnt
maps\thrashing a rear guard.tnt
maps\three passes.tnt
maps\thundurlok rok.tnt
maps\titanium fist bay.tnt
maps\tropical paradise.tnt
maps\two continents.tnt
maps\two ore coast.tnt
maps\void v.tnt
maps\void.tnt
maps\waiting.tnt
maps\wet and dry.tnt
maps\wretched ridges.tnt
maps\yerrot foothills.tnt
maps\yerrot mountains.tnt
maps\yollets rain forest.tnt
maps\zedtopt hotsprings.tnt
maps\zipper attack.tnt
=>;-D Penguin Powered

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Sun May 11, 2008 8:28 pm

Is there a way to extract the descriptions and minimaps (jpeg/gif/png/bmp) without implementing HAPI archive support?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun May 11, 2008 8:31 pm

you can extract files with hpiview but it won't extract minimaps or map description.

But this can be easily implemented since TA3D already has those functions implemented.
=>;-D Penguin Powered

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun May 11, 2008 9:17 pm

ok, forget hpiview, I am merging it with ta3d-bin. So now call ta3d-bin with the parameters you would give to hpiview to do the job.
=>;-D Penguin Powered

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Sun May 11, 2008 9:18 pm

Hooray! For now Ill do just a list control until you've done what I need for a fancy GUI.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun May 11, 2008 9:23 pm

I am adding minimap extraction support from command line, just needs testing, then I'll add a command line to get map description.

PS: which OS do you use (Linux, windows, 32, 64 bits ?), I'll send you a binary with all those new command line features as soon as I get it working so you can experiment with it.
=>;-D Penguin Powered

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Sun May 11, 2008 9:38 pm

Vista Business x64, but I can use 32bit too

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Sun Jun 08, 2008 3:32 pm

Have you added the mini map support yet etc? I think over the next 2 weeks Ill want to finish implementing the new support.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sun Jun 08, 2008 3:47 pm

yes, it's done. But the hpiview program was removed and merged into ta3d-bin binary since it shared lots of code with it. So just call "ta3d help" and it'll show you all available options, one of them allow you to extract the minimap from a .tnt file :wink:
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests