ROM Hack Portal Collection File Sideloader

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,263
Trophies
3
XP
12,019
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,263
Trophies
3
XP
12,019
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,263
Trophies
3
XP
12,019
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,263
Trophies
3
XP
12,019
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: 63
  • Portal_2_20220821_092136_00.jpg
    Portal_2_20220821_092136_00.jpg
    131.4 KB · Views: 61
  • Portal_2_20220821_092106_00.jpg
    Portal_2_20220821_092106_00.jpg
    179.3 KB · Views: 45
  • 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,263
Trophies
3
XP
12,019
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,263
Trophies
3
XP
12,019
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,263
Trophies
3
XP
12,019
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,263
Trophies
3
XP
12,019
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,263
Trophies
3
XP
12,019
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
    K3Nv2 @ K3Nv2: https://youtu.be/IihvJBjUpNE?si=CsvoEbwzNKFf0GAm cool