SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => SWBFUpdate Comments and Notes => Topic started by: Darth Tyllo on January 16, 2012, 12:39:11 AM

Title: GUI Discussion for the update
Post by: Darth Tyllo on January 16, 2012, 12:39:11 AM
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?
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 16, 2012, 03:31:39 PM
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/





Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: 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?
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 16, 2012, 05:53:17 PM
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








Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 16, 2012, 06:04:39 PM
Wait, so does it need to read the map's description? 
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 16, 2012, 06:06:14 PM
that would be nice :)

Otherwise, I have to open the file of descriptions
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 16, 2012, 06:14:23 PM
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?
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 16, 2012, 06:24:30 PM
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)
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 16, 2012, 06:27:41 PM
okay, thanks.  I can make a test one now :D
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 20, 2012, 03:09:27 PM
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. 
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 22, 2012, 01:16:05 AM
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 (http://www.tweakguides.com/SWB_7.html), but it doesn't list it's function.
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 22, 2012, 06:14:41 AM
spawn prorection, 0-1o sec (integer)  are valid values
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 22, 2012, 06:17:15 AM
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.
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 22, 2012, 11:17:13 AM
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.
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 22, 2012, 12:38:59 PM
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)
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 22, 2012, 01:00:10 PM
Ah, alright.  Also, how does your batch file run the maps currently, I've tried:
battlefront.exe /win /norender /noteamdamage /autonet dedicated /resolution 320 240 /nosound /noaim /tps 30 /gamename TEST /playerlimit 16 /playercount 1 /bots 2 /difficulty 2 /throttle 2048 /lan /spawn 5 L0030x 400 400 L0031x 400 400
but battlefront.exe crashes; I need to know how it works so that I can code it, I have all the GUI, but there's no code for most of it.
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 22, 2012, 01:27:38 PM
oh, yes, you will need to install the update

directions are in the download link
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 22, 2012, 02:05:21 PM
I already did :p
I'll try overwriting the mission.lvl again, but other than that, I can't think of what is wrong.  Would you mind posting the contents of your batch file for me to see?
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 22, 2012, 02:59:42 PM
try one of the standard maps:


battlefront.exe /win /norender /noteamdamage /autonet dedicated /resolution 320 240 /nosound /noaim /tps 30 /gamename {PLA}-CloudCity-TKoff-CPinverted /playerlimit 32 /playercount 1 /bots 2 /difficulty 2 /throttle 3072 /spawn 5 bes2r 450 450 bes2a 450 450

you will need to add it to the list
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 22, 2012, 03:31:34 PM
It works when I use Cloud City, but crashes when I try L0030x :(
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 22, 2012, 04:57:20 PM
can you enter the Update servers?  that will be a check to see if you have it installed correctly.

Note that you need the update and the patch.

Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 22, 2012, 05:15:46 PM
Yes, I've played on the Update Server (the one with the patch) several times.
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on January 22, 2012, 05:54:01 PM
hmmm, ok, can i get your GUI?  I can see whats up with it, perhaps
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 22, 2012, 08:51:02 PM
The GUI isn't working yet.  I'll be home tomorrow though, so I can work on it, in between playing Battlefront on a Monday for the first time in a year. 
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on January 23, 2012, 06:54:10 PM
It will take a bit longer than I had previously thought, I got slammed with homework on the first day of the semester, and I have to work on that =/
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on February 10, 2012, 06:34:12 PM
Led, could you PM me the contents of the batch file you use to run the Update Server?  I'm nearly done, but I need that so I can complete the program.
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on February 11, 2012, 02:58:34 PM
Hi Tyllo

Here is the command I use for the jet droid server:

battlefront.exe /win /norender /noteamdamage /autonet dedicated /resolution 320 240 /nosound /noaim /tps 30 /gamename SWBFgamers.com-UPDATE1.0Patch1 /playerlimit 32 /playercount 1 /bots 8 /difficulty 2 /throttle 3072 /spawn 5 L0035x 200 200 L0036x 200 200 L0004x 200 200 L0030x 200 200 L0031x 200 200 L0032x 200 200 L0003x 200 200 L0033x 200 200 L0034x 200 200
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Darth Tyllo on March 11, 2012, 06:32:35 PM
Led, I'm sorry, I just don't think I'll be able to do it.  I'm having a bit of technical difficulties right now.  Functions that I've used a hundred times before are suddenly giving me errors, and I just cannot find the problem, nor will the program work without them.  I've even tried google searching for similar functions, but I tried those, and they curiously give me the same error.  I was really looking forward to doing this project, as I've never attempted anything like it, but it seems I just cannot do it. :c
Title: Re: Re: SWBFgamersUpdate 1.0 Public Beta Release
Post by: Led on March 11, 2012, 07:12:46 PM
its ok man.  I will come up with something :)

Keep on the battlefront  :cheers:
EhPortal 1.34 © 2024, WebDev