[Jan 2025]Misc Note for Coding


Changing the title as I will be including notes not just for verse

UEFN Verse:

  • No global leader board….! I am surprised that it is still not a thing for verse
    • Right now the way is to have a community for people to post their stat so the creators add it manually in regular update
  • I don’t understand the reason you need weak_map(session, t)…unless you can access other sessions? Otherwise it is the same as local
    • Turns out that is THE way to make global variables
    • Epic remove global variables and force everyone to re-make them with weak_map
    • map of a map if you want to have a map as global variable….yikes
  • For global variables, the main reason thar it has to be weak_map(session, t) is because module scope require weak_map, which is used to create persistent data
  • Conditional button doesn’t fire event when people put require items in them. It usually is not an issue if you have “All key items required at once” is true, but when it is false you will want that event fired
    • The way to do it right now is using a button to trigger conditional button so you know when the button is pressed
  • Barrier device no longer load on far distance 😦
    • Even though you can block the gun fire, it doesn’t block axe, keep that in mind if you want to use this device to block damage to something
  • Item on ground despawn naturally when there are too many items in the world. In a map that we allow player dropping item and also have resource spawn into the world as item. Some resource will be removed randomly
    • It will be great to have a list of items will never despawn in island settings, or just make them higher priority so we despawn other item that we care less about first
  • Item spawner only spawn one thing in the item list. When you call the function “cycle to next item”, it will remove the previous spawn
  • Using ToolTip in verse actually cause UEFN to crash, not sure when that started
    • The actual way to use it is this:
    • @editable{ToolTip:=TestToolTip} MyVariable : logic = true
  • Prop manipulator device only fire harvest event if the resource is overridden
  • Editable doesn’t support map container, really should imo

Unity:

  • New input system is pretty good, but you totally need to go through videos to learn it since they are quite a few steps. Patient pays well.
  • Sometimes a function is grey out as “it is not used”. That isn’t true. Be confident if you are following your video right.
  • EulerAngles are clamped from 0 to 360. Even when it make sense to have it over this range.
  • Delta time is not consistent

Published by


Leave a comment