GUI Discussion for the update

Started by Darth Tyllo, January 16, 2012, 12:39:11 AM

Previous topic - Next topic
January 16, 2012, 12:39:11 AM Last Edit: March 11, 2012, 07:14:29 PM by Buckler
Quote from: Buckler on January 05, 2012, 05:09:09 PM
anyone care to program a GUI for me ?  :)

I could probablly do that.  What do you have in mind?

Hi Tyllo,

It would just be something really simple that creates the Command Prompt Command based on the selected map.

The command would look like this:
battlefront.exe /win /norender /noteamdamage /autonet dedicated /resolution 320 240 /nosound /noaim /tps 30 /gamename Led-CloudCity-TKoff-antiGlitch /playerlimit 16 /playercount 1 /bots 2 /difficulty 2 /throttle 2048 /spawn 5 bes2r 400 400 bes2a 400 400


where battlefront.exe /win /norender /noteamdamage /autonet dedicated /resolution 320 240 /nosound
is required and the rest are options that could be select by buttons or sliders (like bots could be 0-32).

you can find the Pandemic GUI in this video:
http://www.xfire.com/video/122a57/





Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

January 16, 2012, 05:25:05 PM #2 Last Edit: January 16, 2012, 05:34:28 PM by Darth Tyllo
I'll get started now, but I can't see xfire video, if you could take a screenshot, that would be great.

EDIT:  Wait, I know what you're talking about.  Do you want all the values to be the same as the standard ones? (like bots 0-32, max players 2-50, etc.)  Also, I have finals tomorrow through thursday, so I can do a little tonight and more starting friday or saturday.  Last thing, will it need to run mod maps or just stock ones?

Quote from: Darth Tyllo on January 16, 2012, 05:25:05 PM
I'll get started now, but I can't see xfire video, if you could take a screenshot, that would be great.

EDIT:  Wait, I know what you're talking about.  Do you want all the values to be the same as the standard ones? (like bots 0-32, max players 2-50, etc.)  Also, I have finals tomorrow through thursday, so I can do a little tonight and more starting friday or saturday.  Last thing, will it need to run mod maps or just stock ones?

Yes, study first please :)

some of the values may be tweaked.

Ideally, I would give you a text listing of the map names that you could read (non standard) let me show you the format that I am using:

dashes
map designation
map description

If your program could read that, then it would be really cool.  If not, I can give you a pretty much final list in a couple of months.

There should also be a little text box we can add more switches too just in case  :)

Thanks   :cheers:





------
L0030x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid
------
L0031x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid1
------
L0032x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid2
------
L0033x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid3
------
L0034x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid4
------
L0035x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid5
------
L0036x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid6
------
L0037x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid7








Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Wait, so does it need to read the map's description? 

that would be nice :)

Otherwise, I have to open the file of descriptions
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Oh, I understand now, it's like the map's name that shows up like BESPIN: CLOUD CITY in that list.  I think I can do that.  What file does it read these values from?

January 16, 2012, 06:24:30 PM #7 Last Edit: January 16, 2012, 06:29:13 PM by Buckler
mmm, lets call it

maplist.txt


BTW, here is a link to the GUI dedi server from Lucas Arts if you want to take a look at it:
http://www.lucasfiles.com/index.php?s=&action=category&id=105

(chose 1.2 version)
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet


January 20, 2012, 03:09:27 PM #9 Last Edit: January 21, 2012, 11:46:30 PM by Darth Tyllo
So, I've started on the program, and I've had to change the format of "maplist.txt" just a little.

It went from:

------
L0030x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid
------
L0031x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid1
------
L0032x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid2
------
L0033x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid3
------
L0034x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid4
------
L0035x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid5
------
L0036x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid6
------
L0037x
standard CC CW era with maxflyheight = 100, sleepkiller jetdroid7


To:

[CONFIG]
# of maps = 8

[1]
Designation = L0030x
Description = standard CC CW era with maxflyheight = 100, sleepkiller jetdroid

[2]
Designation = L0031x
Description = standard CC CW era with maxflyheight = 100, sleepkiller jetdroid1

[3]
Designation = L0032x
Description = standard CC CW era with maxflyheight = 100, sleepkiller jetdroid2

[4]
Designation = L0033x
Description = standard CC CW era with maxflyheight = 100, sleepkiller jetdroid3

[5]
Designation = L0034x
Description = standard CC CW era with maxflyheight = 100, sleepkiller jetdroid4

[6]
Designation = L0035x
Description = standard CC CW era with maxflyheight = 100, sleepkiller jetdroid5

[7]
Designation = L0036x
Description = standard CC CW era with maxflyheight = 100, sleepkiller jetdroid6

[8]
Designation = L0037x
Description = standard CC CW era with maxflyheight = 100, sleepkiller jetdroid7


You can add any amount of maps, as long as they're in that format.  Also, make sure you change '# of maps = 8" is the same as the last map's number, I had to add that to ensure the list would fill up with every map on the list.

UPDATE: I think I'm nearly done.  I may have to change the format again :(  I was thinking something like :
[description],[designation]. 
The problem lies with the descriptions being paired with the designations in the code. 

Led, what does the "/spawn #" command do?  Right now I am compiling a txt file with all the GUI Options/Switches they mean, I looked here, but it doesn't list it's function.

spawn prorection, 0-1o sec (integer)  are valid values
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

here are pandemics instructions for their software

----------------------
Overview

This software allows you to host games for Star Wars Battlefront on your PC over the Internet or on a local area network (LAN). The maximum number of players in the game is dependent on the bandwith and processing power of your PC.


SESSION ID

Session Name: Type the name of your game session. Your session will use this name on the GameSpy matchmaking service or on a LAN.
Password: Type in a password if you want to host a private game. Players will have to type the exact same password to play in your session. Leave it blank to allow anyone to join your session.

GAMEPLAY OPTIONS

Max Number Players: Set the maximum number of human players in your game (2-50). Your PC's networking bandwidth also acts a limit on the number of human players. See Hosting Bandwidth below.
AI Units Per Team: Set the maximum number of AI units per team. This setting also controls the number of native AI units (Ewoks, Tusken Raiders, etc.) on a map.
Min. Players to Start: Select how many players are needed before a map starts. Setting this limit higher helps to ensure a fair game for both teams but may result in longer delays for games to start.
Spawn Invincibility: Set how much time players will be invincible when they spawn in. This protects players from spawn kills by giving them time to run for cover. While invincible, players are not able to shoot or enter vehicles.
Heroes: Select ON to have Jedi Heroes appear for both teams. Select OFF to disable Jedi Heroes.
Team Damage: Select ON to allow players on the same team to damage each other. Select OFF to prevent players on the same team from damaging each other.
Show Player Names: Select ON to display the names of all human players in the game. Select OFF to hide human player names.
AI Difficulty: Choose the AI level for all AI units in the game. AI units are more accurate and intelligent at higher difficulty levels.
Teams: Select Auto Assign to have the game automatically assign teams to players when they join the game. Select Player Select to give players a choice of teams when they join the game.

MAP CHOICES

The box on the left allows you to select which maps are played in your game session. Map Ticket Count displays the default values for ticket counts for each side on the map. Click Galactic Civil War or Clone Wars to choose which era a map will be played in. Hoth and Endor are only playable in the Galactic Civil Wars era while Geonosis and Kamino are only playable in the Clone Wars era.

The maps listed in the Selected Maps box will be the maps played in your game session. You can double-click a map or use the Add or Delete buttons to move maps in and out of the rotation.

Selected Map Ticket Count allows you to override the default ticket count for each side with your own values (up to 1000) for each side.

The maps will be played in the order listed unless the Random Order box is checked. If that box is checked, the selected maps will be played randomly.

Add All: Click this to add all the maps from a era. Keep in mind that you can have a maximum of 24 maps in rotation.
Delete All: Click this to delete all the currently selected maps.


NETWORKING OPTIONS

Hosting Bandwidth: Select the upstream bandwidth of your PC's network connection. Upstream bandwidth means the amount of data that your PC can upload from your Internet connection. Typical DSL or cable connections can upload between 128 kilobits per second (kbps) and 256 kbps. At these speeds, the maximum number of human players in a game should be no more than 4-6 players. A 1 megabit or better (T1)connection is required to host a session with 16 human players. If you set the Hosting Bandwidth higher than your actual connection, you will experience poor performance in your game.
LAN Game: Check this box for better performance if you're hosting a game on a local area network.

SERVER START

When you're ready to start your game session, click the Start button. After a few minutes, the game session will launch in a separate window. To end the session, click the Stop button.

Automatic Restart: Checking this box will automatically restart a game session if it crashes.

IN GAME SERVER WINDOW:

Clicking on the in game server window opens up a pop-up window that allows you to BOOT and BAN Players from the game.

Boot: Click on a player name to highlight it and press the BOOT button. This will remove that player from the game in progress. However, that player will be allowed to rejoin the game and future games you host using the PC Dedicated Server GUI.

Ban: Click on a player name to highlight it and press the BAN button. This will remove that player from the game in progress. That player will not be allowed to rejoin the game as well as future games you host using the PC Dedicated Server GUI. That players IP address is stored in Banned IPs.

Banned IPs: Displays a list of all IP addresses you have banned.

You can type an IP address in the text box and press the BAN button to prevent players from that IP address to join games you host.

You can type an IP address with a wildcard "*" in the text box to prevent players from an entire range of IP addresses from joining games you host. For example: 123.123.123.* blocks all IP addresses from 123.123.123.0 to 123.123.123.255.

You can type an IP address with a ":" plus a number to define the IP address with the port to be banned as well. For example: 123.123.123.123:80.

You can revoke a banned IP address at any time by simply clicking the IP address and pressing the REVOKE button. This will allow a player from that IP address to rejoin games you host.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Ah, thanks :D  Also, where in the .../data/_LVL_PC/SWBFgamersUpdate1.0/ Folder are these maps? I can't find any maps like L0030x, only the SWBF2 Conversions and such.

the map names and stored locations are contained in mission.lvl

all we need for the new GUI to do is be able to choose the name based on the text file that describes them.

(the actual maps are part of the directory structure for the update)
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet