ROM Hack Portal Collection File Sideloader

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland

Portal Collection File Sideloader​


Nintendo Switch skyline plugin for Portal 1 and 2 that allows to load files outside of game.zip, so no more repacking and sending huge archives every time you want to change something.

More in Readme.

Confirmed that "Bringus mod" works for Portal 1 and 2 without any change to file layout.

Hope this helps with better thriving mod scene for this Collection. :)

Repo (#Readme): https://github.com/masagrator/PortalNXSideLoader#readme
Download: https://github.com/masagrator/PortalNXSideLoader/releases
 

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
It seems for more advanced mods to work maybe I need to do one more thing - hook function that lists contents of folders.

Executable seems to have hardcoded paths for checking files that don't have absolute path in this order in Portal 2 (higher = higher priority):
  • "update"
  • "portal2_dlc%d" (it starts from highest detected number and goes to 1. We have portal2_dlc1 and portal2_dlc2, but stat_nx checks also if portal2_dlc3 exists. And because it doesn't, it stops here and passes only portal2_dlc1 and portal2_dlc2 to check by game. This could be potentially used as entrypoint for bigger mods)
  • "portal2"
 
Last edited by masagrator,
  • Like
Reactions: AlmondMilk12

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
Welp, there's it. It checks if portal2_dlc3 exists, but does absolutely nothing after detecting that it exists.
But have managed to load Portal Reloaded by putting "portalreloaded" as "portal2_dlc2" into "nxcontent" with deleted gameinfo.txt. And yeah, stat_nx modification was necessary.

Issue is some textures won't load. My guess is that it may be related somehow to sdk_content folder and not loading materials from there.
Since those are materials, I was trying to put "maps" to "portal2_dlc2" and contents of "portal_reloaded" folder in sdk_content into "portal2_dlc2/materials", but it changed nothing. Maybe I need to hook something else too. Would be nice to have knowledge of some Portal 2 modder. :P

2022081908540900.jpg2022081908182600.jpg2022081908191600.jpg2022081908192100.jpg2022081908201000.jpg2022081908512700.jpg
 
Last edited by masagrator,
  • Like
Reactions: AlmondMilk12

AlmondMilk12

Active Member
Newcomer
Joined
May 20, 2022
Messages
32
Trophies
0
Age
21
Location
Auckland
XP
194
Country
New Zealand
Welp, there's it. It checks if portal2_dlc3 exists, but does absolutely nothing after detecting that it exists.
But have managed to load Portal Reloaded by putting "portalreloaded" as "portal2_dlc2" into "nxcontent" with deleted gameinfo.txt. And yeah, stat_nx modification was necessary.

Issue is some textures won't load. My guess is that it may be related somehow to sdk_content folder and not loading materials from there.
Since those are materials, I was trying to put "maps" to "portal2_dlc2" and contents of "portal_reloaded" folder in sdk_content into "portal2_dlc2/materials", but it changed nothing. Maybe I need to hook something else too. Would be nice to have knowledge of some Portal 2 modder. :P

View attachment 323243View attachment 323238View attachment 323239View attachment 323240View attachment 323241View attachment 323242
still very impressive work regardless, maybe theres some portal modding discord server that could lend some help
 
1.1

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
Ok, found the issue. Game for some reason don't want to load some materials within BSP files (Console is putting out which files exactly cannot be read. Since you can't navigate through dev console inside game, you need to hook "ConMsg()" and "ConColorMsg()" in tier0.nro to get console output in debugger)

Solution is to unpack "materials" folder from bsp files with VIDE and put folder into portal2_dlc2 folder.
So yeah, it seems PC mods won't work fully on Switch without little modifications to packages.

Example of how I have done Portal Reloaded (didn't play whole mod, so maybe I will miss something):
- Download Portal Reloaded from Steam
- Go to mod folder (steam/steamapps/common/Portal Reloaded)
- Delete all folders except "portalreloaded"
- rename "portalreloaded" to "portal2_dlc2"
- delete "gameinfo.txt"
- use VIDE to unpack "materials" folder from all *.bsp files inside "maps" folder and put every "materials" folder into "portal2_dlc2" folder
- (Additional bonus) repack vpk to delete resource/ui/basemodui folder, because currently it replaces options with PC settings.
- Put portal2_dlc2 folder to romfs/nxcontent

And tested Portal: Still Alive mod for Portal 1 (renaming folder to "portal" and putting it into nxcontent) which seems to work without issues.

And remember: all files must be lower case! Portal: Still Alive had .vpk files that weren't using lower case only.

Btw. first sequence of Portal Reloaded tanks FPS to 30 :D
2022082010225400.jpg2022082010225700.jpg2022082010230300.jpg
-------

Released updated plugin.
So I guess that's end of my involvement.
I will just fix bugs if any occur. I am going to other projects.
 
Last edited by masagrator,

vos6434

Member
Newcomer
Joined
Mar 25, 2022
Messages
6
Trophies
0
Age
20
Location
England
XP
66
Country
United Kingdom
I've tried porting Portal Mel. Chapters 1-2 crash, Chapter 3 is unplayable at 0 fps but chapter 4 loads fine.
Edit - Chapter 4 crashes after the elevator start.
 

Attachments

  • Portal_2_20220821_103854_00.jpg
    Portal_2_20220821_103854_00.jpg
    196.5 KB · Views: 64
  • Portal_2_20220821_092136_00.jpg
    Portal_2_20220821_092136_00.jpg
    131.4 KB · Views: 62
  • Portal_2_20220821_092106_00.jpg
    Portal_2_20220821_092106_00.jpg
    179.3 KB · Views: 49
  • Portal_2_20220821_105207_00.mp4
    17.3 MB
  • Like
Reactions: Allen-R

vos6434

Member
Newcomer
Joined
Mar 25, 2022
Messages
6
Trophies
0
Age
20
Location
England
XP
66
Country
United Kingdom
Some subtitles seem to work.
Chapter 5 is the most playable, it runs fine until Turret Factory where your fps drops to 0 and game crashes.
I don't know what happened to this glass.
 

Attachments

  • Portal_2_20220821_110215_00.mp4
    18.4 MB
  • Portal_2_20220821_113128_00.mp4
    17.8 MB

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
I've tried porting Portal Mel. Chapters 1-2 crash, Chapter 3 is unplayable at 0 fps but chapter 4 loads fine.
Edit - Chapter 4 crashes after the elevator start.
For me Chapter 1 and 2 didn't crash, it was just slowing down to near 0 FPS.
Mod is choking CPU for some reason. I guess code is not optimized too well in this terms?
At least according to posts on Steam and reddit it seems it's fairly noticeable FPS drops.

https://steamcommunity.com/app/317400/discussions/0/523890046881383656/
https://steamcommunity.com/app/317400/discussions/0/451850468373884354/


You need properly optimized mods to get them working properly on Switch.

Beside dunno how did you install this mod that you are getting different main menu, you have repacked vpk maybe?
2022082115192600.jpg
 
Last edited by masagrator,
1.2

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
Updated plugin to support Portal 2 1.0.3 update.
Portal 1.0.3 update didn't change anything that plugin relies on, so you can update game without updating plugin.
 
  • Like
Reactions: hippy dave
1.3

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
Updated plugin to fix issues with reading materials from BSP files and custom sounds.

Now you don't need to unpack materials from BSP anymore.

Now also "portal2_dlc3" folder is correctly detected.

Read README inside repo how to properly install PC mod, it's now less of a pain
 
Last edited by masagrator,
1.4

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
Released next update fixing issues with save flushing.

If after installing mod you can't save anything in settings, you can try to delete gameinfo.txt from mod folder. Though if you have PC settings menu, you may be forced to delete files related to it.
 
Last edited by masagrator,
  • Like
Reactions: hippy dave

ThatFinn

Well-Known Member
Newcomer
Joined
May 28, 2020
Messages
89
Trophies
0
XP
330
Country
Austria
I've tried the mod and its amazing! Thanks for the great work! But i have one question. How can you shoot the time portal in Portal Reloaded?
Post automatically merged:

anyone tried aperture tag with this?
I've tried, but for me it's not working.
 
Last edited by ThatFinn,

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
I've tried the mod and its amazing! Thanks for the great work! But i have one question. How can you shoot the time portal in Portal Reloaded?
Post automatically merged:
In case of Portal Reloaded time portal is assigned to "+zoom" action, which in case of Switch is R.
ZL - Orange Portal
ZR - Blue Portal
R - Time Portal
 

ThatFinn

Well-Known Member
Newcomer
Joined
May 28, 2020
Messages
89
Trophies
0
XP
330
Country
Austria
Oh thanks! I was just looking for an options but i only found the blue and the orange portal. But it works perfectly. Thanks
Post automatically merged:

I was playing Portal with the mod yesterday an at some point my switch froze. I had to reboot, but now the R Button i just the normal zoom. I tried to reinstall this mod and Portal Reloaded and resetting the controller mapping in the settings but it didn't work. Any fix for this? Or is there a console command to do so? (then i can use another mod to map the time portal to R)

EDIT: I had to reinstall Portal Reloaded in order to get it working
 
Last edited by ThatFinn,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub: