Code Monkey home page Code Monkey logo

xportal's Introduction

XPortal

XPortal is a Valheim mod that lets you select a portal's destination from a list.

Where to download

(click the image!)

 

Nexus Mods     Thunderstore

 

Help wanted

At any given point, there might be open issues that I need help with. For example, there could be compatibility issues with mods that I do not use myself.

If you would like to help, look at the Issues page to browse all open issues, or just click the link below to immediately filter the list of open issues by the tags help wanted Extra attention is needed and incomplete Needs more info .

https://github.com/SpikeHimself/XPortal/issues?q=label%3Aincomplete%2C%22help+wanted%22+is%3Aopen

Bugs, Feature Requests and Translations

First of all, before you report a bug, please make sure that the problem you are experiencing is actually caused by XPortal. If you are running other mods, disable those, and see if the problem goes away. Or the other way around: disable XPortal, and see if that makes the problem go away. If you discover that XPortal is incompatible with another mod, please do report that, because I might be able to create work-arounds for that. If you are not sure, or you are struggling with these steps, then just report the problem, and we'll go from there.

It is important to me that I can make XPortal as bug-free as possible, but please bear in mind that without your LogOutput.log, I will not be able to debug your issue at all. Just showing me a screenshot of an error is not enough for me to discover the cause of that error.

To report a bug, please navigate to the Issues page, click New issue, choose Bug report, and fill out the template.

For feature requests, choose Feature request on the New issue page.

To add a translation to XPortal, choose Translation when submitting a New issue.

Installation instructions (for developers)

I will soon write a guide to get XPortal working in your development environment. For now, you can probably figure some stuff out by having a look at the JotunnModStub project that XPortal inherited from AnyPortal. Please bear in mind that the information there might have changed since XPortal was created, and that XPortal itself may over time have diverted from the steps laid out there. Again, a guide will follow soon!

I did more too!

Please have a look at my other mod too! XStorage lets you open multiple chests at once, rename them, and move items/stacks to the most suitable chest.

xportal's People

Contributors

bonesbro avatar spikehimself avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xportal's Issues

Possible bug with "ghost" portals

Describe the bug
Portals that get a name and later get destroyed leave a "(No Name)" until server reset.

To Reproduce
A buddy of mine says this doesn't happen to him but when I create a portal, give it a name, teleport to town, teleport back, break it down for mats, it renames it (No Name) and doesn't go away until the server is restarted.

LogOutput file(s)
Same with the list of mods used, I don't have a ton of time right now to upload a log but can if that's really required and when able.

Version
1.2.10

Environment
Choose from the following options where you are experiencing the problem (leave only the ones you know about):

  • Dedicated server
  • Multiplayer Client (I joined another server/host)

Other mods
I'm not sure if I experience it without any other mods, my buddy is running the exact same mods I am and it's quite a bit and doesn't get the issue so not really sure if you really want me to list them all. I can if that really might solve it though.

Priority
Estimate how important this problem is. Choose Medium if you don't know.

  • Medium (XPortal kind of still works, but it's not pleasant to use)

error getting spammed on dedicated server

i installed the mod and i keep getting this log output spammed

Feb  1 07:20:59:  NullReferenceException: Object reference not set to an instance of an object
Feb  1 07:20:59:    at XPortal.XPortalUI.InitialiseUI () [0x00047] in <eb5284e3cfa74cbd8f1ab1e80cd23f69>:0 
Feb  1 07:20:59:    at XPortal.XPortalUI..ctor () [0x00011] in <eb5284e3cfa74cbd8f1ab1e80cd23f69>:0 
Feb  1 07:20:59:    at XPortal.XPortalUI+<>c.<.cctor>b__47_0 () [0x00000] in <eb5284e3cfa74cbd8f1ab1e80cd23f69>:0 
Feb  1 07:20:59:    at System.Lazy`1[T].CreateValue () [0x00060] in <695d1cc93cca45069c528c15c9fdd749>:0 
Feb  1 07:20:59:  --- End of stack trace from previous location where exception was thrown ---
Feb  1 07:20:59:    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <695d1cc93cca45069c528c15c9fdd749>:0 
Feb  1 07:20:59:    at System.Lazy`1[T].get_Value () [0x00020] in <695d1cc93cca45069c528c15c9fdd749>:0 
Feb  1 07:20:59:    at XPortal.XPortalUI.get_Instance () [0x00000] in <eb5284e3cfa74cbd8f1ab1e80cd23f69>:0 
Feb  1 07:20:59:    at XPortal.HarmonyPatches+InventoryGuiIsVisiblePatch.Postfix (System.Boolean& __result) [0x00000] in <eb5284e3cfa74cbd8f1ab1e80cd23f69>:0 
Feb  1 07:20:59:    at (wrapper dynamic-method) InventoryGui.DMD<InventoryGui::IsVisible>()
Feb  1 07:20:59:    at Menu.Update () [0x000eb] in <617986ed2f06468487af280e8d8f7c04>:0 

chrome_9ONCSHSMXS

i used to run anyportal
https://valheim.thunderstore.io/package/sweetgiorni/AnyPortal/

here is the rest of my mods

denikson-BepInExPack_Valheim-5.4.1901
LoadAndDelete-BetterPickupNotifications-1.3.1
ValheimAddicts-Compass_By_Aedenthorn-1.1.2
virtuaCode-EquipWheel-1.3.8
Smoothbrain-Farming-2.1.8
blacks7ar-VikingsDoSwim-1.1.0
Azumatt-Official_BepInEx_ConfigurationManager-17.0.0
Vapok-AdventureBackpacks-1.5.6
Finland_Fjordors-SafeDeath-1.2.1
Smoothbrain-DarwinAwards-1.0.4
Advize-PlantEverything-1.13.0
Crystal-ProperPortals-1.2.2
JoelOliMclean-NoRainDamage-1.2.1
Nexus-InstantMonsterLootDrop-0.2.11
LVH-IT-UseEquipmentInWater-0.2.3
kassent-SkillBasedCarryweight-1.0.0
ValheimModding-Jotunn-2.10.3
LTmadness-FermenterPercentage-1.0.0
Nexus-FarmGrid-0.2.0
mgway-PaddlePower-1.0.2
ASharpPen-Spawn_That-1.2.2
Horem-Fruit_Trees-1.2.4
Horem-Farmyard_Animals-0.3.3
Horem-Supply_Crates-0.2.0
Horem-Fancy_Foods-0.2.1
Therzie-Warfare-1.3.2
ishid4-BetterArchery-1.9.0
RandyKnapp-EquipmentAndQuickSlots-2.1.1
Smoothbrain-Blacksmithing-1.2.2
OdinPlus-OdinArchitect-1.1.1
remmiz-SimpleRecycling_Fixed-0.0.15
Smoothbrain-Building-1.2.4
OdinPlus-OdinCampsite-1.4.1
ComfyMods-Chatter-1.3.0
OdinPlus-OdinShip-0.2.4
Smoothbrain-StaminaRegenerationFromFood-1.5.3
OdinPlus-OdinTrainingPlace-1.4.0
OdinPlus-BetterLanterns-1.0.2
OdinPlus-OdinsFoodBarrels-1.0.10
virtuaCode-EmoteWheel-1.4.0
The_Bees_Decree-VALKEA-2.1.41
OdinPlus-OdinHorse-1.1.0
cjayride-CraftingFilter-0.6.1
OdinPlus-OdinsHorsePen-1.0.4
Goldenrevolver-Quick_Stack_Store_Sort_Trash_Restock-1.3.1
Papajin68-Constitution-1.0.1
Crystal-Pathfinder-2.0.7
Crystal-Sated-1.1.8
Smoothbrain-Sailing-1.1.5
OdinPlus-OdinsCraftyBoxes-1.0.8
OdinPlus-CraftyCartsRemake-3.0.8
WithinReason-MultiCraft-1.1.1
Smoothbrain-Foraging-1.0.2
OdinPlus-PotionPlus-4.1.9
Smoothbrain-Lumberjacking-1.0.3
Smoothbrain-Mining-1.1.3
Smoothbrain-Ranching-1.1.1
Smoothbrain-Cooking-1.1.11
Smoothbrain-Tenacity-1.0.2
Smoothbrain-Evasion-1.0.2
Smoothbrain-SmoothSave-1.0.0
Eisenholz-CartSupport-0.2.0
aedenthorn_nexus-AutoFeed-0.7.0
Azumatt-RemoveAttackFreezeFrame-1.0.0
KGvalheim-MagicHeim-1.1.0
CW_Jesse-BetterNetworking_Valheim-2.1.3
MSchmoecker-MultiUserChest-0.4.1
Azumatt-ImFRIENDLY_DAMMIT-1.0.5
Azumatt-BetterWards-1.8.6
Digitalroot-Better_Trader_Remake-2.2.7
NotMyMod-ValheimRAFTWithAssets-1.4.7
Ulfiee-PreciseRotationByJDandDisregardthatisuck-3.0.0
SpikeHimself-XPortal-1.0.0
bonesbro-FloorsAreRoofs-2.0.1
MathiasDecrock-Snap_Points_Made_Easy-1.3.2

Portals disappear

Love this mod. Small concern though, when I join my dedicated server the portal locations are all gone. I have to run to each portal to activate it again. Any help would be appreciated. Thanks

Does XPortal Convert AnyPortal portal tags?

This is more of a question than a feature request, but the answer may result into a feature request.

We are currently using AnyPortal, and this mod sounds like a great upgrade to AnyPortal now that it's deprecated.

Will this mod convert existing portals that were tagged by AnyPortal? Or will we have to go around and retag portals?

Second, unrelated question, does this mod work with Advanced Portals? AnyPortal does, so I'm assuming you're not doing anything too crazy. https://valheim.thunderstore.io/package/RandyKnapp/AdvancedPortals/

Option to turn off Ping button

Is your feature request related to a problem? Please describe.
Not bug related. I'm setting up a challenge server with no mini-map, no map, no cartography table and super limited portals. I like that you can just select a portal from a dropdown which is exactly what im after, but unfortunately having access to the Ping button allows people to peek the map.

Describe the solution you'd like
Just a simple toggle option to show/hide or enable/disable the Ping button would suffice.

Describe alternatives you've considered
Ive skimmed around some of the other popular portal mods out there and they often want to get too fancy with introducing new resources and what not which im just not interested in. So it seemed like a reasonable feature request for this mod instead, given the already simple UX which I like.

Additional context
N/A

Handling of input from on-screen keyboard

From Nexus Mods:

There's an issue with this mod in VHVR. In VHVR when I click a portal it brings up the portal configuration window and a virtual keyboard to change its name. When I click done on that keyboard it automatically closes the portal configuration window so I can't choose a destination or ping or anything. The keyboard hides the portal config window and prevents interacting with anything else so I have to close it. It's likely built-in to VHVR to close the default portal window when done typing. Since AnyPortal made its own window it doesn't have this problem and is still usable. A possible fix is to not automatically have it activate the text box for the portal's name so the virtual keyboard doesn't come up.

Organise portals by 'folder'

Talking to a friend, with whom we share games on a server that lives by my left hand....

Portals, Or was call them Stargates...

Can we please have sub-directories in the Portal list?
Why?
We Make "farms" like Surtling Core farms, and have 4 to 6 fire fountains producing Cores..
I name mine
B-Cores 1&2
B-Cores 3&5
etc,
If we could have directories, We could create one called ie, Core Farms and place the farms in there, reducing the size of the parent list by several entries.
This could apply to all farm situation.
We are talking about that, NOW, and this would extend to all like scenarios.

Thanks you...

Bob.

Opening portal menu after using cultivator blocks you from doing anything.

Describe the bug
Opening portal menu after using cultivator blocks you from doing anything. You have to force quit Valheim and open it to be able to do anything.

To Reproduce

  1. Use cultivator. Plant something.
  2. Open portal menu.
  3. Done. Should be stuck now.

Expected behaviour
No idea. It kept spamming the same error.

LogOutput file(s)
LogOutput.log

Version
1.2.11

Environment

  • Multiplayer Host (my game is the server)
  • Multiplayer Client (I joined another server/host)
  • Singleplayer

Other mods
I didn't try without other mods, here is my mod list:

denikson-BepInExPack_Valheim-5.4.2105
Digitalroot-Better_Trader_Remake-2.2.10
Smoothbrain-DualWield-1.0.7
Smoothbrain-Sailing-1.1.5
aedenthorn_mods-InstantMonsterLootDrop-0.5.0
RandyKnapp-EquipmentAndQuickSlots-2.1.6
Smoothbrain-Foraging-1.0.4
Fu-CookingStationTweaks-0.4.1
Smoothbrain-CreatureLevelAndLootControl-4.5.6
Smoothbrain-Mining-1.1.4
ASharpPen-This_Goes_Here-2.1.1
Smoothbrain-Farming-2.1.8
castix-FloatingItems-1.0.0
LVH-IT-UseEquipmentInWater-0.2.3
ValheimModding-Jotunn-2.12.0
SpikeHimself-XPortal-1.2.11
xAfflict-UnrestrictedPortals-1.4.2
Smoothbrain-StaminaRegenerationFromFood-1.5.3
Azumatt-Official_BepInEx_ConfigurationManager-18.0.0
k942-MassFarming-1.6.0
ArmchairSavages-CropReplant-1.0.2
cdymrtn-BuildRestrictionTweaks-0.3.0
Smoothbrain-Blacksmithing-1.2.3
Smoothbrain-Cooking-1.1.12
NexusReUploadByPan-MiningMod-1.0.0
OhhLoz-HoneyPlus-5.2.0
Frogger-JustNoRoof-0.0.6
Goldenrevolver-Quick_Stack_Store_Sort_Trash_Restock-1.3.10
GemHunter1-FastTeleport-1.1.0
Advize-PlantEverything-1.13.6
Mydayyy-ServerSideMap-1.3.7
blacks7ar-MagicPlugin-1.5.4
Therzie-Warfare-1.4.5
Crystal-DeathPenalty-1.0.4
UnJohnny-Outsiders-1.5.3
MonsterLabZ-MonsterLabZ-3.0.1
Therzie-Armory-1.0.5
Therzie-Monstrum-1.1.1
aedenthorn_mods-AutoFuel-1.1.0

Priority

  • Medium (XPortal kind of still works, but it's not pleasant to use)

Additional information
Add any addtional information here. Anything that you think might help is appreciated.
If applicable, add screenshots to help explain your problem.

Can you add a Default connection?

Any way to set a specific Portal as your 'Default' connection, so that if you place a new Portal it Auto connects to the 'Default' Portal without needing to be selected or named?

AdvancedPortals Support - Multiple portal dropdowns/lists per portal type.

I would love for a config option to be added to add an additional compatibility with AdvancedPortals.

Currently all portals, no matter what type, will show up on the dropdown list. Would it be possible to add a configuration option to restrict the visible portals on the dropdown list to the corresponding type of portal that's being interacted with?

Perhaps by creating multiple KnownPortalsManager(s) per portal type/prefab?

NotImplementedException: The method or operation is not implemented.

edit: it is actually not this mod

Describe the bug
NotImplementedException: The method or operation is not implemented.

at System.Environment.FailFast (System.String message) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at .‍‮‌‭‎‎‭‪‭‬‌‪‮‫‫‌‬‪‎​​‎‪​‫‌‮ (System.Object thread) [0x00103] in <30cdd5e5055d4f5fa058cf531bf4b076>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00025] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Threading.ThreadHelper.ThreadStart (System.Object obj) [0x0000f] in <695d1cc93cca45069c528c15c9fdd749>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.<>c:b__0_0(Object, UnhandledExceptionEventArgs)

To Reproduce
Be in Developer build, load game

Expected behavior
No errors

LogOutput file(s)
No errors in bepinex console. Error is in dev build.

Version
1.2.5

Environment
Home screen

Other mods
unsure if problem persists without these mods, but here is what i have installed:
Compass 1.1.1
Craft From Containers 3.0.0
Custom Audio 1.4.4
Instant Monster Drop 0.4.0
Nexus Update 1.1.1
AllTheBases 1.0.4
AzuAreaRepair 1.0.1
AzuClock 1.0.0
AzuContainerSizes 1.0.0
AzuExtendedPlayerInventory 1.0.3
AzuMapDetails 1.0.0
AzuMiscPatches 1.0.3
AzuSkillTweaks 1.0.0
AzuWearNTearPatches 1.0.2
AzuWorkbenchTweaks 1.0.1
BuildCameraCHE 1.0.0
CraftyCarts 3.0.8
DurabilityTweaks 1.0.3
FastLink 1.3.4
PerformanceTracker 1.0.2
ResourceUnloadOptimizer 1.0.1
PerfectPlacement 1.0.1
BalrondContainers 1.0.7
BalrondShipyard 1.1.1
DvergrFurniture 1.0.5
FarmGrid 0.2.0
Configuration Manager 17.0
Jotunn 2.10.4
ValheimRAFT 1.4.5
VikingsDoSwim 1.1.4
CameraMod 0.0.8.7
GammaMod 0.1
MissingPieces 2.0.0
Plateautem 0.3.3
BetterCreative 1.3.0
ModSettings 0.0.1
TeleportEverything 2.3.0
Use Equipment in Water 0.2.3
Valheim Quality of Life 1.4.2
Clutter 0.1.2
Catalyst Buildables 0.0.1
Skills Give More Carry Weight 1.0.3
Valheim Trash Can 1.1.3
Digitalroot's Slope Combat Assistance 2.0.2
ChestName 1.1.0
More Gates 1.0.10
Better Archery 1.9.0
Item Stand All Items 1.17
Valheim Character Backup 1.3.1
Candles__Lanterns_and_Beeswax 2.0.0
Seed Totem 4.3.0
FuelEternal 1.2.0
Beehive Utilities Revived 1.0.2
BetterUI 2.4.1
MrSerji_Construction 0.2.5
Automatics 1.4.0
Sleepover 1.0.2
Speedy Paths Mod 1.0.7
Conversion Size & Speed 1.0.9
Creature Level & Loot Control 4.5.4
Darwin Awards 1.0.4
Jewelcrafting 1.4.3
Pet Protection 0.2.0
Timed Item Destruction 1.0.2
Display BepInEx Info In-Game 2.0.0
Valheim Recycle 2.4.0
OdinArchitect 1.2.7
OdinCampsite 1.5.0
OdinHorse 1.1.5
OdinTrainingPlace 1.5.0
Equipment and Quick Slots 2.1.1
Improved Build HUD 1.0.4
SearsCatalog 1.1.0
BuildIt 1.6.3
Server Devcommands 1.42
AutomaticFermenters 1.0.1
VALKEA 2.1.4
Adventure Backpacks 1.6.9
No Fog Bruh 1.0.1
Shield Me Bruh! 1.0.4
Equip Wheel Mod 1.3.8
Useful Armor Stands 1.0.4
Comfort Tweaks 3.1.12
XPortal 1.2.5

Priority

  • Medium (don't know)*

Additional information

Server to enforce "PingMapDisabled" setting on all clients

Is your feature request related to a problem? Please describe.
Oversight on my behalf of not explicitly stating an appropriate solution for disabling the Ping feature should also be server sync'd so that Server Admins have control over this flag for their users.

Describe the solution you'd like
Introduce Server Sync to the configuration option for disabling Ping. If the server says no ping, clients get no ping, if the server says ping, the clients get ping.

Describe alternatives you've considered
All my eggs are in this basket! 😅

Additional context
Acknowledge that this may escalate the initial feature request into requiring a bit more effort, but it would make it "feature complete" from a mod perspective pertaining to the Disable Ping option 👍

Xportal key binds missing - valheim plus

Describe the bug
I used vortex to install Xportal to a working valheim+ installation. When I create a new portal, the screen shows a poorly formatted error message that the key binding is missing. Portals work but the Xportal functionality can't be accessed. I can't find the configuration file for the mod.

To Reproduce
Install Valheim+, Install Xportal, Create a Portal. Configure the portal.

Expected behavior
Xportal menu should be exposed by Xbox buttons (running Xbox controller with a PC install).

LogOutput file(s)
Please have Debug output enabled. Attach the file called LogOutput.log which can be found in the directory Valheim\BepInEx\.
If you play on a server, include the server's LogOutput.log as well.

Version
1.2.5

Environment
Single Player, PC

Other mods
Picture from Vortex appended.

Priority
High

Additional information
Add any addtional information here. Anything that you think might help is appreciated.
If applicable, add screenshots to help explain your problem.

Screenshot 2023-02-28 082928

Screenshot 2023-02-28 083336

LogOutput.log

(BUG) Error after portal useage once, as host.

As a host of my server, i got rid my portal hub and built a new system, Apon using the portal once to travel to a destination and back, i am unable to to configer the portal anymore and my console spits out this error code.

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
XPortal.XPortalUI.PopulateDropdown () (at :0)
XPortal.XPortalUI.ConfigurePortal (XPortal.KnownPortal portal, System.Collections.Generic.Dictionary`2[ZDOID,XPortal.KnownPortal]& knownPortals) (at :0)
XPortal.XPortal.OnPostPortalInteract (ZDO portalZDO) (at :0)
XPortal.HarmonyPatches+TeleportWorldInteractPatch.Postfix (ZNetView& ___m_nview, System.Boolean& __result) (at :0)
(wrapper dynamic-method) TeleportWorld.DMDTeleportWorld::Interact(TeleportWorld,Humanoid,bool,bool)
Player.Interact (UnityEngine.GameObject go, System.Boolean hold, System.Boolean alt) (at <35c0f7aa1999477788815a7bf78200d7>:0)
(wrapper dynamic-method) Player.DMDPlayer::Update(Player)

My Clients, are able to use the portal just fine.
deleteing and building a new portal works, but then after use im locked out again.
let me know if you need any more info! illdo my best to provide

AdvancedPortals compatibility

When a user logs in the server, all AdvancedPortals portals names are reset, so we can't teleport to them anymore. As a workaround for now, we're using backup portals.

Would it be possible to have a compatibility with this mod as I saw there was something similar done in issue #20 ?

Also, thanks for the mod, it's awesome.

Unable to scroll portal list

Hi,

I have more than 80 portals and it's difficult to choose between them with the controller.
When we open the list we can see the first 20 portals (approximately).
Using D-Pad Up' / 'D-Pad Down' we can choose previous or next portal . We can alternatively use joystick (faster)
After the 20th items, we don't see what is selected.

In fact, the scroll bar is not focusing the selection.
Without a mouse, it's impossible to scroll the portal list.

Regards.

Let me know if you need more details.
Without this problem Gamepad support is excellent (adding keyhints would be perfect)

Custom Meshes by Aedenthorn breaks XPortal UI

I made a bug report on the nexus page for Custom Meshes but seeing as it hasn't been updated since 2021 I'm not sure if Aeden is interested in messing with it. I don't know if it's something you could look into, nor do I think it is that important (I couldn't find anyone else having this issue) but I thought you might want to check it out, at least!

And here's a direct link to the screenshot I included

Translation problem

Could you remove $piece_portal where it is in the string together with $piece_portal_tag, it will make translation easier. Some languages have a different word order, and some even have a different charset.

~~$piece_portal~~ $piece_portal_tag

It would be good to leave more space for text on the left, the tag of the portal probably won't be that long.
portal

Installation instructions unclear

The installation instructions should:

  1. mention XPortal's dependencies (BepInEx and Jötunn) and link to their respective installation instructions
  2. more strongly advise (implore!) that a mod manager is used to install XPortal (as opposed to installing manually)
  3. provide detailed step-by-step instructions of how manual installation should be carried out

See also: #23 (comment)

The idea of adding some features.

Add restrictions to the original non-transferable items. (Configurable switches, preferably synchronized with the server)
For example, to teleport minerals (or other items that were restricted from being teleported in the original game), you need to spend the appropriate amount of gold or other freely configurable items (the amount consumed or depends on the teleport distance, or other conditions you deem reasonable).
If you don't have the appropriate consumable, you can't teleport.
I think free teleportation without restrictions would greatly shorten the life and enjoyment of the game, but simply not allowing players to teleport minerals is also a waste of time. Adding consumables is also a restriction on teleporting minerals. So I think this feature is still necessary.

Wild beehives invincible after 1.2.1 update

Started this night a new world, new character and ran into the problem that I couldn't destroy wild beehives.
They don't take damage and, destroying the surrounding structure, lets them float in the air.
In my prior world, this was not an issue.
The only thing that changed, was the update yesterday. I spent nearly 7 hours trying to find out which mod was guilty and XPortal was the one, I had no clue it would bug the beehives. But as soon as I disabled the mod, the problem was gone.

HarmonyX warning on plugin load

See this in my logs....

[Warning: HarmonyX] AccessTools.GetTypesFromAssembly: assembly XPortal, Version=1.2.6.0, Culture=neutral, PublicKeyToken=null => System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at HarmonyLib.AccessTools.GetTypesFromAssembly (System.Reflection.Assembly assembly) [0x0000d] in <474744d65d8e460fa08cd5fd82b5d65f>:0

only shows up on load, and no other issues run into...

release file zip issue

Hi,

I downloaded the release file from https://github.com/SpikeHimself/XPortal/releases/tag/v1.2.9
Extracting it makes a strange behaviour :

ls -lh 
total 200K
-rw-r--r-- 1 quentin quentin 3,6K 23 mars  09:12  CHANGELOG.md
-rw-r--r-- 1 quentin quentin  37K  1 févr. 13:11  icon.png
-rw-r--r-- 1 quentin quentin  414 23 mars  09:12  manifest.json
drwx------ 2 quentin quentin   40 23 mars  09:13 'plugins\XPortal\Translations\'
-rw-r--r-- 1 quentin quentin  307 31 janv. 14:02 'plugins\XPortal\Translations\Dutch\xportal-translations-dutch.json'
-rw-r--r-- 1 quentin quentin  303  8 févr. 22:46 'plugins\XPortal\Translations\English\xportal-translations-english.json'
-rw-r--r-- 1 quentin quentin  315  1 févr. 17:59 'plugins\XPortal\Translations\French\xportal-translations-french.json'
-rw-r--r-- 1 quentin quentin  317  2 févr. 19:18 'plugins\XPortal\Translations\German\xportal-translations-german.json'
-rw-r--r-- 1 quentin quentin  310  9 févr. 18:43 'plugins\XPortal\Translations\Korean\xportal-translations-korean.json'
-rw-r--r-- 1 quentin quentin  328  9 févr. 00:20 'plugins\XPortal\Translations\Polish\xportal-translations-polish.json'
-rw-r--r-- 1 quentin quentin  302  1 févr. 17:21 'plugins\XPortal\Translations\Portuguese_Brazilian\xportal-translations-portuguese_brazillian.json'
-rw-r--r-- 1 quentin quentin  418  9 févr. 00:20 'plugins\XPortal\Translations\Russian\xportal-translations-russian.json'
-rw-r--r-- 1 quentin quentin  312  3 févr. 23:18 'plugins\XPortal\Translations\Spanish\xportal-translations-spanish.json'
-rw-r--r-- 1 quentin quentin  42K 23 mars  09:13 'plugins\XPortal\XPortal.dll'
-rw-r--r-- 1 quentin quentin 7,6K 23 mars  09:12  README.md
-rw-r--r-- 1 quentin quentin  64K  2 avril 00:00  XPortal-v1.2.9.zip

It's the first time I see it but I searched and see that some windows tool are mixing up things with separators.

I fixed path with this command :

for i in *; do new=${i//\\/\/}; newd=$(dirname "$new"); mkdir -p "$newd"; mv "$i" "$new"; done

https://unix.stackexchange.com/a/607751

After that, the plugin is working.

Can you fix the release to be compatible both on windows and unix ?

Thanks

XPortal crashes on dedicated server with Valheim Plus installed

Describe the bug

  • I have installed Xportal to a dedicated server running Valheim Plus only (Server side). Since installing (March 8th) I have had to fly around the map to "remap" the portals. I am unsure as to why, but the portal names are reverting back to nothing which means there is nothing to also select for a destination.

To Reproduce

  • Install Valheim Plus and XPortal on dedicated server
  • Run the server
  • A player joins the server
  • XPortal (on the server) will now receive a sync request, this is where the error occurs (in XPortal.KnownPortal.GetColour()).

LogOutput file(s)

Version

  • 1.2.6

Environment

  • Dedicated Server

Other mods

  • Jotunn 2.10.4
  • Valheim Plus 0.9.9.11

Priority

  • Medium

Edits by @SpikeHimself :

Updated summary (2023-03-28)

  • As soon as a player joins, the server is trying to build a list of all portals so that it can send that to the player. This immediately goes wrong, because the server is failing to retrieve the portal colour:
[Info   :XPortal.RPC] Received sync request from `206028287` because: Achilliez (206028287) has joined the game
[Info   : Unity Log] 03/09/2023 17:07:21: Exception in ZRpc::HandlePackage: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. 
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. 
---> System.NullReferenceException: Object reference not set to an instance of an object
  at XPortal.KnownPortal.GetColour (UnityEngine.GameObject prefab) 
  at XPortal.KnownPortal.GetPortalColour (ZDOID portalId) 
  at XPortal.KnownPortal..ctor (ZDOID id) 
  at XPortal.KnownPortalsManager.UpdateFromZDOList (System.Collections.Generic.List`1[T] zdoList)
  at XPortal.XPortal.ForceLocalPortalUpdate (System.Collections.Generic.List`1[T] allPortals)
  at XPortal.XPortal.ProcessSyncRequest (System.String reason) 
  at XPortal.RPC.RPC_SyncRequest (System.Int64 sender, System.String reason) 

In v1.2.6 this error could occur if the portal prefab does not have child GameObject _target_found_red/Point light or that child does not have a Light component:

private static string GetColour(GameObject prefab)
{
var colour = prefab.transform.Find("_target_found_red/Point light").GetComponent<Light>().color;
return "#" + ColorUtility.ToHtmlStringRGB(colour);
}

Newer versions of XPortal have improved logging so that we can determine the precise cause, but this was not yet tested by this issue's author.

We do know that removing ValheimPlus resolves the issue. Therefore this is a compatibility issue.


Steps to take to help with testing

  • Download the latest Debug release of XPortal
  • Enable debug logging in your BepInEx config
  • Install Valheim Plus and the latest Debug release of XPortal on a dedicated server
  • Run the server with a world that already has portals (or create one first)
  • Join the server
  • Share the server's LogOutput.log

Not working on Linux

Describe the bug
I manually added XPortal using BepInEx, however I do not think the plug in was added to my game.

Version
XPortal v1.2.5

Environment

  • Singleplayer on Linux, specifically Nobara 37 which is a unofficial fork of Fedora

Other mods
I am using Unrestricted Portals, and it works fine.

Priority

  • High (XPortal does not work at all anymore)

Additional information
Add any addtional information here. Anything that you think might help is appreciated.
If applicable, add screenshots to help explain your problem.

Ping function not working

Describe the bug

  • Every time you try do ping your map location the ping function doesn't work

To Reproduce

  • Go to drop down menu location, click on location than click on "Ping"

Expected behaviour

  • Ping don't show the location on the map

LogOutput file(s)

Version

  • 1.2.7

Environment

  • Singleplayer

Other mods

  • I turned of all my mods try test it only the Xportal dependency mods are on

Priority

  • Medium

Map of active portals

I saw anyportal mod https://www.nexusmods.com/valheim/mods/170

It said its repalced by XPortal. Was wondering why it had map, and this has only ping.

It would be very handy to be able to see all portals on map.

Also, if clicking on map ping would set destination automatically, then it would be super awesome.

That would acually make game "dont care about portal names anymore"

Portals not working : portals unamed and list gone

Hi,

Describe the bug
Since the latest updates 0.216.9 portals list is gone and all portals are unamed.
Impossible to reconnect old portals and new portals doesn't seem to work either
No problem yesterday on windows
Same behavior on 2 different maps

Removed Xportal mod and portals work as expected.

To Reproduce
Install latest Valheim updates

Version
Which version of XPortal are you experiencing your problem with?
latest

  • Singleplayer (linux / not tested on windows)

Other mods

Unrestricted Portals

[Message: BepInEx] BepInEx 5.4.21.0 - valheim (03/28/2023 20:49:57)
[Info : BepInEx] Loading [Jotunn 2.11.7]
[Info : BepInEx] Loading [XPortal 1.2.10]
[Info : BepInEx] Loading [UnrestrictedPortals 1.4.2]

Do you experience the issue also when you do not have any other mods installed? If applicable, please provide the full list of mods that you are using.

Priority

  • High (XPortal does not work at all anymore)

Additional information
I reinstalled all mods to be sure I have the latest version
Is may be related to "Jotunn the Valheim Library" or "BepInExPack Valheim"

After removed Xportal (linked 2 sets of portal) and reinstalled Xportal mod, the portal list seems to work correctly.
If you use portal even if you select a portal it goes the 'default' portal. Using the ping function show the correct location.

Advanced Portals mod has been updated today. I don't see commit on the git repo :/
but changelog says :

1.0.4

  • Updates for 0.216.9 Valheim

'

Request - Config option to double portal crafting cost

Is your feature request related to a problem? Please describe.
XPortal mod makes portal pairs essentially cheaper by only requiring installation of a new portal on one side.

Describe the solution you'd like
Option to double the crafting cost of portals.

Describe alternatives you've considered
Other options would be a configurable build cost for the portal

Incompatability/bug between MassFarming, ValheimPlus, XPortal/Jotunn

Describe the bug
Place portal using hammer, attempt to demolish portal with hammer, portal isn't demolished.

To Reproduce
Place portal using hammer, attempt to demolish portal with hammer, portal isn't demolished.

Expected behaviour
Portal demolished.

LogOutput file(s)
LogOutput.log

Version
v1.2.9

Environment
Dedicated server
Singleplayer

Other mods
MassFarming v1.6 https://www.nexusmods.com/valheim/mods/527
ValheimPlus Fix v0.9.9.12 https://www.nexusmods.com/valheim/mods/2323
Jotunn v2.11.2 https://www.nexusmods.com/valheim/mods/1138

Priority
Medium (XPortal kind of still works, but it's not pleasant to use)

Additional information
XPortal works normally with just ValheimPlus, it also works normally with just MassFarming, but not when using all 3 together. Weirdly enough it lets you demolish after placing a new portal and then zooming out or in with scroll then attempting to demolish with the hammer. Also no error is thrown in server console, portal just doesn't demolish.

UI Dispose error on shutdown

Copied from Nexus Mods:

[Error  : Unity Log] NullReferenceException
Stack trace:
XPortal.XPortalUI.Dispose () (at baa6176448674e34b851ffa06fae7693:0)
XPortal.XPortal.OnDestroy () (at baa6176448674e34b851ffa06fae7693:0)

Compatibility with TargetPortal

I would love to see an enhancement when combining TargetPortal (https://github.com/blaxxun-boop/TargetPortal/) with XPortal

Currently, with both installed, it is possible to configure the portal details (portal name and target) including the longer portal names (which is awesome) however when walking through the portal the map pops up and lets you select a target to warp to. I would love to see this changed so that TargetPortal only opens the map if XPortal doesn't have a destination configured. This would allow a player to set a destination and travel without the map if desired, but also use the amazing features of TargetPortal too.

I've put a matching request in TargetPortals issues, link is here: blaxxun-boop/TargetPortal#24

Translation

Question 1: What is the name of the language you are translating to?

Italian

Question 2: Please replace the English translations in quotation marks below:

1: Portal description: "Si connette ad un altro portale",
2: Set tag: "Configura",
3: Tag: "Nome",
4: Target: "Destinazione",
5: Target 'none': "(Nessuno)",
6: Name 'no name': "(Senza nome)",
7: XPortal UI header title: "Salute, viaggiatore!"

Translation

What is the name of the language you are translating to?
Please use the English name as it is used on this page: https://valheim-modding.github.io/Jotunn/data/localization/language-list.html

Please replace the English translations in quotation marks below:

Portal description: "Connects to another portal",
Set tag: "选择传送点",
Tag: "所在地",
Target: "目的地",
Target "none": "(空)",
Name "no name": "(未命名)",
XPortal UI header title: "道路千万条,安全第一条"

Only interacted portals in the list.

Is your feature request related to a problem? Please describe.
On a multiplayer-server it is not always wanted by the players, to show their portals to everyone.

Describe the solution you'd like
For multiplayer, it would be really nice, if the portal-list would only show portals, the character has already interacted with. So different players could have their own portals, without knowing of the others.

Controller support

XPortal does not respond to gamepad input at this point. Would be nice if it did!

XPortal Dropdown isnt visible in VHVR

XPortal Dropdown is not visible in VHVR
is it possible that the dropdown isnt on the right layer (UI layer) ?

(Note the top left is the non filtered UI placed on world, while the bottom right is the actual UI rendered for VR, which only allow show UI Layer)
VirtualDesktop Android-20230206-093005

Stuck on "Fetching Portal Info" on new portals

Version 1.2.1, installed through Vortex, manually on home hosted server (same version, another machine running ubuntu).

Already present portals work as intended but as soon I add or destroy and recreate one I get a "fetching portal info" while hovering over them and can't do nothing, not even destroy them via building menu and they disappear from the working portal list.

Is a Private Portal [that only a player can see and or use ] possible? If so I think that would make a nice addition to this mod.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Advanced Portals portal not removed from dropdown list

Describe the bug

  • Destroying an Advanced Portal portal does not trigger a sync event, and it is therefore not removed from the dropdown list.

Version

  • v1.2.6

Environment

  • Multiplayer Host (my game is the server)
  • Multiplayer Client (I joined another server/host)

Priority

  • Medium

Some dropdown fixes/enhancements

Describe the bug

  • (bug) The individual dropdown items overlap each other. If you click near the bottom of an item, the one below it will be selected
  • (enhancement) There is no visual feedback on hovering over the items

Version

  • 1.2.3

Priority

  • Low

Ping Button still not working in 1.2.8 Release

Describe the bug

  • We updated the XPortal but the Ping Button is still not working

LogOutput file(s)

  • (for future reference, you can attach a file to a comment by dragging it onto the textbox, you don't have to paste the contents)
  • Server has no Errors while using Ping Button only Client

Version

  • 1.2.8

Environment

  • Multiplayer Client (I joined another server/host)

Priority

  • Medium

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.