Addon system for console

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
cbadal
Corporal
Corporal
Posts: 156
Joined: Sun Jan 18, 2015 5:23 pm
Projects :: SWBF2 XBOX Mod Environment
Games I'm Playing :: SW Battlefront 2
xbox live or psn: No gamertag set
Contact:

Addon system for console

Post by cbadal »

Hey guys,
Today I released an addon system for the console versions of SWBF2 ( consider it to be in stage alpha)
If anyone here was curious about modding for the console versions check out the addon system (ppsspp) tutorial here:


(It turns out that PPSSPP makes testing changes super nice)

Download addon system with examples here:
https://github.com/BAD-AL/SWBFII_Alt_Ad ... es/tag/0.1
User avatar
cbadal
Corporal
Corporal
Posts: 156
Joined: Sun Jan 18, 2015 5:23 pm
Projects :: SWBF2 XBOX Mod Environment
Games I'm Playing :: SW Battlefront 2
xbox live or psn: No gamertag set
Contact:

Re: Addon system for console

Post by cbadal »

I've updated the addon system to include support for adding new strings to core.lvl.
SWBFII modders may also find the included 'LVLTool.exe' program useful for replacing certain scripts inside a .lvl file without re-munging the whole thing.

This video shows the addon system with AnthonyBF2's latest PSP release (Version 8 )
[youtube=https://www.youtube.com/watch?v=HyGFpVQ9VHQ]


Also wanted to mention...
In the mission files we should have code like:

Code: Select all

    local assetLocation = "addon\\002\\"
	if ScriptCB_GetPlatform() == "PC" then
		assetLocation = "DC:"
	end 
		
    ReadDataFile(assetLocation .. "SIDE\\all.lvl",
                    "all_inf_rifleman",
                    "all_inf_rocketeer",
                    "all_inf_engineer",
                    "all_inf_sniper",
                    --"all_inf_officer",
                    "all_inf_wookiee",
                    "all_hero_hansolo_tat"
    )
...
So that the mission files locate the assets correctly on PC as well as on the console you're working on.
Last edited by cbadal on Mon Mar 15, 2021 3:35 pm, edited 1 time in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Addon system for console

Post by Marth8880 »

This is awesome! Nicely done!
Post Reply