SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: tosostefanots on May 30, 2016, 05:17:06 AM

Title: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 05:17:06 AM
Hi
I'm new to this forum and I'm writing to know how to:
-   Change the number of reinforcements each side have on a map (stock or modded)
-   Eventually change the assigned command points for each faction

Changes are to be applied to stock and/or modded maps for LAN use ONLY, I'm not interested in server issues, only in playing locally with friends  :cheers:


I already downloaded the following modding tools:
-   BFBuilder
-   Common.lvl Builder
-   Core.lvl Builder
-   Load.lvl Builder
-   Mission.lvl Builder
-   Shell.lvl Builder
-   Side.lvl Builder
-   Sound.lvl Builder

But I really don't know wich one could be useful for me and how to use it  :confused:

Can anyone help please?  ;)

Ps: excuse me if I forgot any forum rule, I'm a newbye here :)
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 06:38:40 AM
Changing reinforcements can be done in one of three ways:

-use the dedicated server software.  It allows you to change the numbers for each side for any map as you set up the server map, It also allows for LAN playing mode.

-or edit the mission lua for the map (available for stock maps)

-or hex edit the mission lua for the map (must be done if map lau is not available)
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 09:12:22 AM
Ok, thank you very much :)
I'll apply and try, maybe you have a hint about how to do it?
Redirect me to a discussion or tutorial, if you know one...

Thanks again  :D
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 09:21:17 AM
OK, start with this one:
http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=441

1.2 dedicated server software.  please note that the exe will need to be replaced or you need to use the hosts file if you are wanting to play internet multiplayer.

The tickets can be changed per map over on the right side when you click on the map.
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 09:34:02 AM
Thanks

I'll try this one, maybe for the other two metods I'll ask later :)
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 09:36:21 AM
No problem.  Be sure to check the box for LAN mode if that is what you want.
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 10:00:38 AM
Ok, tried it but i ran into a problem...

Installed in the default folder (C:\Program Files (x86)\LucasArts\Star Wars Battlefront PC Server)
When I try to confirm the settings the program calls SWBF but crashes.

Tried repalcing battlefront.exe with a link to the game's .exe, but nothing

Re-Installed in the Gamedata folder of SWBF, thinking the issue was it couldn't find the right exe.
This time seems better, opens a window of the game, thinks on it about 20 seconds and then crashes.

A bit sad :(

Now I ask... What's the problem? Thansk for helping me!
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 10:03:01 AM
What version of windows are you using ?
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 10:04:02 AM
Windows 10 but I already tried to use compatibility mode (xp service pack 3)
The game runs great this way
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 10:08:30 AM
Quote from: tosostefanots on May 30, 2016, 10:04:02 AM
Windows 10 but I already tried to use compatibility mode (xp service pack 3)
The game runs great this way

OK.  Keep in mind we have been talking about installing the server software.  I will see if I can make a video to show you.
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 10:09:53 AM
Thanks for your support :)
I'll wait your answer
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 10:10:24 AM
Ah, forgot it... I just noticed, using a second computer, that even if the game has crashed the server seems to create the match anyway... I'm investigating...
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 10:30:35 AM
Here is a video that I just made using my windows 10 computer.

https://www.youtube.com/watch?v=OOKLSx2W2-8

Note that if you want to play on Internet (not LAN) that you will have a few more things to do.
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 10:49:28 AM
Thank you :)
I'm trying...
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 11:05:15 AM
Ok, I watched the guide and replied these exacts steps:

With original game installed in C:\Program Files (x86)\LucasArts\Star Wars Battlefront

Renstalled the server application in

C:\Program Files (x86)\LucasArts\Star Wars Battlefront PC Server    (default options)

Launched the server application, set up the game EXACTLY as shown in the video

Clicked on play...

It opens a window named: Star wars battlefront 1: "match name" and then pops up the crash message of battlefront.exe

What did I do to gain the god's punishment? :(
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 11:10:40 AM
idk.  I am also using windows 10 and I did not do anything other than what the video recorded.

Do you have some anti-virus program that may be blocking the server software? 

Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 11:12:18 AM
Also, please make sure your computer account that you are using is an Administrator account.
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 11:15:46 AM
I'm using windows defender, but I allowed both the game and the server applications; also I'm running both as an administrator :(
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 11:26:21 AM
OK, let's move on to option 2.

download the mission builder
http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=319

open the file bes2a.lua in the scripts/bes folder

look for these lines
--  Attacker Stats
    SetUnitCount(ATT, 25)
    SetReinforcementCount(ATT, 200)
    AddBleedThreshold(ATT, 31, 0.0)
    AddBleedThreshold(ATT, 21, 0.75)
    AddBleedThreshold(ATT, 11, 2.25)
    AddBleedThreshold(ATT, 1, 3.0)

--  Defender Stats
    SetUnitCount(DEF, 25)
    SetReinforcementCount(DEF, 200)
    AddBleedThreshold(DEF, 31, 0.0)
    AddBleedThreshold(DEF, 21, 0.75)
    AddBleedThreshold(DEF, 11, 2.25)
    AddBleedThreshold(DEF, 1, 3.0)


change the values from 200 to 1000 (or another value) in the indicated lines
click on munge.bat
go into _LVL_PC folder and get the new mission file. 

Backup your original mission.lvl file.
Put this new mission.lvl file in its place.

Play SWBF as usual.
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 11:34:37 AM
Trying it... In the meantime, is it possible to do the same with modded maps? If it's complicated don't mind my question, I've stolen you a lot of time already.

Thanks again a lot for your help, sir :)
Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 11:38:40 AM
OH GOD IT WORKS!!!!

Thanks!!!!  :cheer: :cheer: :cheer: :cheer:
Title: Re: Modify reinforcement number in maps
Post by: Anyder on May 30, 2016, 11:41:32 AM
Quote from: tosostefanots on May 30, 2016, 11:34:37 AM
Trying it... In the meantime, is it possible to do the same with modded maps? If it's complicated don't mind my question, I've stolen you a lot of time already.

Thanks again a lot for your help, sir :)
Yeah, if u get to work the battlefront server window u'll be able to edit the reinforcements each team has.


If not, I think u're able to do it by editing the mapinfo.txt the modmap folder has (besides, u can hexedit it or create a new mission.lvl for that modmap)
Title: Re: Modify reinforcement number in maps
Post by: Led on May 30, 2016, 11:42:42 AM
The problem with mod maps is that we don't have the LUA for them.

There is a way, but it is complicated.  You have to do some hex editing.

I made three related videos on this topic
https://www.youtube.com/watch?v=g25qAW37EeM
https://www.youtube.com/watch?v=zQ7dVDUBIgM
https://www.youtube.com/watch?v=_3glnEOW1Vs

These videos are related to a previous discussion in this thread
http://www.swbfgamers.com/index.php?topic=10345.0


Title: Re: Modify reinforcement number in maps
Post by: tosostefanots on May 30, 2016, 11:44:39 AM
Ok, I'll try to do that during the next week...
For now I'm ok :)

Thaks for your valid and fast support, I've nevere been so happy to join a community :D
EhPortal 1.34 © 2024, WebDev