Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Viathan

#1
To extend on this, I tried to set a custom resolution for SPTest.exe.

SPtest in 2560 x 1440
You cannot view this attachment.

Here's the script you can paste into a cheatengine table. (Cheattable is attached)
Changes are applied when entering or leaving a match. If you turn off the script before, the game window will reset to its original size.

[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:
// 1024 x 768 (set values in hex below)
mov ecx,300 // height
mov eax,400 // width

// 1920 x 1080 (set values in hex below)
//mov ecx,438 // height
//mov eax,780 // width

// 2560 x 1440 (set values in hex below)
//mov ecx,5A0 // height
//mov eax,A00 // width


originalcode:
//mov ecx,[esp+08] // height
//mov eax,[esp+04] // width

exit:
jmp returnhere

"SPTEST.exe"+16CB80:
jmp newmem
nop 3
returnhere:


 
 
[DISABLE]
dealloc(newmem)
"SPTEST.exe"+16CB80:
mov ecx,[esp+08]
mov eax,[esp+04]
//Alt: db 8B 4C 24 08 8B 44 24 04

I've added three presets: 768p, 1080p and 1440p. By default, 768p is activated.
You can add any combination you want under "newmem". It does not have to be listed in the "vidmode.ini" file.

SPTest with weird res
You cannot view this attachment.


It's recommended to set a toggle hotkey for the script because as you know the SPTest window is always on top. You can't use ALT+Tab etc. I haven't found a solution for this yet.
Of course, you can always just close the game.
#2
I made a little patch for SPTest.exe that removes the green overlay without hiding console commands.

You cannot view this attachment.

Change the following bytes in SPTest.exe and make a backup first.
Original: SPTEST.exe+17B401 - A1 A47F6600           - mov eax,[SPTEST.exe+267FA4]
Patched:  SPTEST.exe+17B401 - B8 00000000           - mov eax,00000000


Original: SPTEST.exe+17B429 - C6 87 0F450000 80     - mov byte ptr [edi+0000450F],-80
Patched:  SPTEST.exe+17B429 - C6 87 0F450000 00     - mov byte ptr [edi+0000450F],00

Alternatively, you can use the attached cheatengine table, so you can toggle in game (1 and 0 for on and off).

I've also attached a patched SPTest.exe.
Just drop it into your GameData folder (again, backup first). 

It does not work for the Steam version (even the unpatched SPTest won't work for me).
#3
Do you mean SPTest?

You can use this tool to maximize the game window (it won't really scale nice though) and also disable the green thingy. (Note that the green thingy is basically the container for the console, so the console is hidden as well)

There are also hotkeys to toggle that stuff ingame.

#4
SWBF1 Modding / Re: SPTest Request
June 02, 2021, 01:28:44 PM
Hey Snake,

It seems SPTest.exe wants to access a key in registry. Put the following in a file and name the extension .reg then run it.
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\lucasarts\Star Wars Battlefront\1.0]
"CD Key"="XXXX-XXXX-XXXX-XXXX-XXXX"
It seems as it does not validate the key. Just tested on Win10.
Hope it helps.
#5
Requests / Re: SPTest in win10
June 29, 2020, 05:40:09 PM
Hi Javier,

if I recall correctly, you have to add the english common.lvl to "...\GameData\Data\_LVL_PC\Common"
You need a folder in there, called "ENG", in there you place the common.lvl.

If I'm not mistaken, you have to do the same for the shell.lvl file.

For others having problems getting SPTEST.exe to work under Windows 10, try this:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\lucasarts\Star Wars Battlefront\1.0]
"CD Key"="XXXX-XXXX-XXXX-XXXX-XXXX""

Put that into a file, name does not matter, the file extension should be ".reg".

I checked SPTEST.exe with a process monitor to see which files it tries to access.
This fixed it for me.
#6
SWBF1 Modding / Quick match for mod testing
July 07, 2017, 03:04:03 PM
I made a little mod that may be useful for some modders.
It adds one or two buttons to the main menu which can launch a game instantly.
You can of course edit it to your needs, my current setup is:

  • Button 1: Launches a singleplayer game (instant action) on mos eisley with a single click
  • Button 2: Launches a LAN game with no bots and player team select etc with a single click
  • Button 3: Server Browser - "Straight to sessionlist"




File: ifs_main.lua (shell script)
buttons added on lines 3 and 4
Code (lua) Select

buttonlist = {
  { tag = "sp", string = "ifs.main.sp", },
  { tag = "isp", string = "INSTANT SINGLEPLAYER", },
  { tag = "imp", string = "INSTANT MULTIPLAYER", },
  { tag = "mpsb", string = "SERVER BROWSER", },
  { tag = "mp", string = "ifs.main.mp", },
  { tag = "split", string = "ifs.main.split", },
  { tag = "tutorials", string = "ifs.main.tutorials", },
  { tag = "opts", string = "ifs.main.options", },
  { tag = "back2", string = "ifs.main.profiles", },
  { tag = "quit", string = "common.quit2windows", },
},


instant singleplayer button functionality
search for "this.CurButton == " and you will see where to add the code below
Code (lua) Select

elseif (this.CurButton == "isp") then
  RoundIFButtonLabel_fnSetString(this.buttons.isp, "LOADING ...")
  ifelm_shellscreen_fnPlaySound(this.acceptSound)
  -- clear old SSID and netshell
  ScriptCB_ClearPrevSessionId()
  ScriptCB_CloseNetShell(1)
  -- set up singleplayer mode stuff
  ifs_sp.bForSplitScreen = nil
  ScriptCB_SetSplitscreen(nil)
  ScriptCB_SetInNetGame(nil)
  -- file reference: ifs_sp -------------------------------------
  ScriptCB_SetMetagameRulesOn(nil)
  ScriptCB_SetHistoricalRulesOn(nil)
  ScriptCB_SetCanSwitchSides(1)
  -- file reference: ifs_instant_top ----------------------------
  ScriptCB_SetDifficulty(ScriptCB_GetDifficulty())
  ifs_missionselect.bForMP = nil
  -- file reference: ifs_missionselect --------------------------
  ispMapData = {-- modified gPickedMapList from ifs_missionselect
    { Map = "tat2i", Side = 1 }
  }
  ScriptCB_SetMissionNames(ispMapData, false)
  --ifs_missionselect.SelectedMap = gPickedMapList
  ScriptCB_EnterMission()


instant multiplayer button functionality
Code (lua) Select

elseif (this.CurButton == "imp") then
  RoundIFButtonLabel_fnSetString(this.buttons.imp, "LOADING ...")
  ifelm_shellscreen_fnPlaySound(this.acceptSound)
  -- ifs_mp
  ScriptCB_SetConnectType("lan")
  gOnlineServiceStr = "LAN"
  ScriptCB_SetNoticeNoCable(1)
  -- ifs_mp_main
  ScriptCB_ClearPrevSessionId()
  ScriptCB_SetAmHost(1)
  ifs_missionselect_pcMulti.bForMP = 1
  ScriptCB_SetMetagameRulesOn(nil)
  -- ifs_missionselect_pcMulti
  -- no "gPickedMapList" needed. (not even the modified variant) -> we can't pre-select the team like in 'isp'
  impMap = "tat2i"-- the map + era to load
  ifs_missionselect.SelectedMap = impMap
  this.SelectedMap = 1
--Players, Bots, TeamDmg, AutoAim, IsPrivate, ShowNames, AutoAssignTeams, StartCnt, HeroesEnabled, Difficulty, Password
  ScriptCB_SetNetGameDefaults(2, 0, 0, 0, 0, 1, false, 0, false, 0, "")
  ScriptCB_SetMissionNames(impMap, false)
  ScriptCB_SetDedicated(false)
  ScriptCB_SetGameName("INSTANT MULTIPLAYER")
  --ifs_mp_gameopts.bAutoLaunch = 1
  ScriptCB_BeginLobby()
  this.bLan = 1
  --ScriptCB_LaunchLobby()
  ScriptCB_EnterMission()





I'm lazy af and I find it annoying to click through the entire game just to see if the little change I made to my common.lvl looks good or something.
Seriously, this is kinda lifesaver for me. While messing around with cheatengine or a debugger, the game crashes a lot.
Any feedback is appreciated. If you need help, don't hesitate to pm me (or reply here) :cheers:


thx to Phobos for sharing few helpful scripts.
thx to SleepKiller for the "LogProgress" idea. Would've driven me crazy without it.
#7
Released Assets / Re: swbf-unmunge
July 07, 2017, 12:33:40 AM
Great job :cheers:
Was working on a similar project but it's way not as good as yours
#8
SWBF1 Modding / Re: how can i edit mods?
July 06, 2017, 02:59:03 PM
Quote from: swgaming1015 on July 06, 2017, 02:37:12 PM
Firstly, there's no way to un-munge data
naah, that's not 100% correct. There are .lvl decompilers/extractors. You can extract textures etc.

And afaik you can use SWBFviewer to export .msh to .wrl and then import it into Blender.
However, really extending or modifying a mod may only be possible by using the assets (if released) as swgaming1015 mentioned.

Which mods do you want to modify?
#9
Hey there, it's been a while. Glad to see that some ppl are still active on this game :cheers:


Creating a LAN server for mod testing can be awesome because you can turn off bots and stuff.
Nevertheless I find it annoying that I have to set the server settings over and over again whenever I restart the game.

So, here's the solution:
The default server settings are (kinda ugly/not clear) stored in the shell file ifs_mp_gameopts.lua
To override these simply, find (within the first 20 lines):
Code (lua) Select

if(not this.bFirstTime) then
  this.bFirstTime = 1
  this.iNumPlayers = this.iMaxPlayers
  this.iNumBots = this.iMaxBots
end


and extend it with an else statement like this:

Code (lua) Select

if(not this.bFirstTime) then
  this.bFirstTime = 1
  this.iNumPlayers = this.iMaxPlayers
  this.iNumBots = this.iMaxBots
else -- OVERRIDE DEFAULT SERVER OPTIONS
  this.iNumBots = 0 -- AI units per team set to 0
  this.bAutoAssignTeams = not this.bAutoAssignTeams -- enable team player select
end


Of course you can customize the other options as well.
#10
Forum News and Forum Rules / Re: SSL / https
April 03, 2017, 01:12:36 AM
Hey, this might be a solution.
https://letsencrypt.org/
#11
General / Re: We Did It
July 15, 2015, 08:05:51 AM
Yea, discovered in 1930 and finally seen 2015  :cheers:
#12
Quote from: -=(212) Nixo=- on July 05, 2015, 03:49:29 PM
That seems to have worked, haven't had to load it up manually since i've made the changes! Thanks!
You're welcome  :cheers:
#13
Try to edit the security settings of the LucasArts folder.
(RightClick, Properties, Security tab, and check if you have full access to everything.)
Give your current user all rights and make sure "ReadOnly" is disabled.
#14
Another thing you could try is to add and unlock the whole battlefront server stuff in your firewall.
Click start and type in "Firewall". There will be a result called "Windows Firewall with extended Security" or something similar.
There you can change any settings related to programs that communicate via Internet.
#15
General / Re: Xfire Alternatives (Poll)
June 30, 2015, 02:28:02 AM
Quote from: Anyder on June 30, 2015, 12:59:58 AM
What about Skype ? Many eu swbf1 players use it.
Yea, Skype is great. Even it hasn't an ingame overlay.
But you can build groups and Video / Voice chat and ofc text chat, file sharing and some other stuff.
But I think it's not as stable as Steam is with its ruled member positions such as Admin / mod or normal member.

Quote from: Anyder on June 30, 2015, 12:59:58 AM
(I use Steam/TS3/Skype/Origin)
Same here  :cheers: