Code Monkey home page Code Monkey logo

fushigi's People

Contributors

aoiyu-dev avatar aquacluck avatar break-core avatar chromacat248 avatar declan-reid avatar donavindraws avatar ethanglide avatar explosblue avatar fruityloops1 avatar irishbruse avatar jozz024 avatar jupahe64 avatar kievit85 avatar killzxgaming avatar meatball132 avatar pandahexcode avatar panquesito7 avatar rioluuu avatar shibbo avatar tomatechgames avatar toonic avatar

Stargazers

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

Watchers

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

fushigi's Issues

CLR/System.InvalidCastException After placing any rails

An unhandled exception of type 'System.InvalidCastException' occurred in System.Private.CoreLib.dll: 'Unable to cast object of type 'Fushigi.Byml.BymlNode1[System.Int32]' to type 'Fushigi.Byml.BymlNode1[System.UInt32]'.'

After placing a rail in my level, or multiple and then closing the editor or switching levels everything works as expected, from there i can open the editor and go back to my level fine, but the seccond time i do it, in any version of fushigi (tilemapbranch, main, v0.3-0.4-0.5-0.6) i get a Invalid cast exception every time from there on.
This bug happens without any actor to rail links, and happens with both assistant rails present and unpresent in the level

Steps to reproduce the behavior:

  1. Create a new rail and add a few points (one the level didnt have before)
  2. Save the level
  3. Close Fushigi
  4. Open Fushigi
  5. Save the level
  6. Close Fushigi
  7. Fushigi will not open on the seccond time, instead i get the error on the first line of this post

Expected behavior
Fushigi Opens and loads the level with all the rails, including the new ones i made

Code_nrjmv4vfew

OS: Windows 11

Additional context
Its very odd it opens on the first time after adding the rail then breaks every time after that

Error

Exception has occurred: CLR/System.InvalidCastException
An unhandled exception of type 'System.InvalidCastException' occurred in System.Private.CoreLib.dll: 'Unable to cast object of type 'Fushigi.Byml.BymlNode1[System.Int32]' to type 'Fushigi.Byml.BymlNode1[System.UInt32]'.'
at Fushigi.util.BymlUtil.GetNodeData[T](IBymlNode node) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\util\BymlUtil.cs:line 21
at Fushigi.util.BymlUtil.GetValueFromDynamicNode(IBymlNode node, String dynNode, String type) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\util\BymlUtil.cs:line 75
at Fushigi.course.CourseRail.CourseRailPoint..ctor(BymlHashTable node, String pointParam) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\course\CourseRail.cs:line 240
at Fushigi.course.CourseRail..ctor(BymlHashTable node) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\course\CourseRail.cs:line 102
at Fushigi.course.CourseRailHolder..ctor(BymlArrayNode railArray) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\course\CourseRail.cs:line 326
at Fushigi.course.CourseArea.Load() in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\course\CourseArea.cs:line 54
at Fushigi.course.CourseArea..ctor(String areaName) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\course\CourseArea.cs:line 20
at Fushigi.course.Course.LoadFromRomFS() in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\course\Course.cs:line 55
at Fushigi.course.Course..ctor(String courseName) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\course\Course.cs:line 24
at Fushigi.ui.MainWindow.LoadFromSettings(GL gl) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\ui\MainWindow.cs:line 134
at Fushigi.ui.MainWindow.Render(GL gl, Double delta, ImGuiController controller) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\ui\MainWindow.cs:line 311
at Fushigi.windowing.WindowManager.<>c__DisplayClass10_0.b__1(Double deltaSeconds) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\windowing\WindowManager.cs:line 83
at Silk.NET.Windowing.Internals.ViewImplementationBase.DoRender()
at Silk.NET.Windowing.WindowExtensions.<>c__DisplayClass2_0.b__0()
at Silk.NET.Windowing.Internals.ViewImplementationBase.Run(Action onFrame)
at Silk.NET.Windowing.WindowExtensions.Run(IView view)
at Fushigi.ui.MainWindow..ctor() in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\ui\MainWindow.cs:line 80
at Program.

$(String[] args) in C:\Users\jacob\Downloads\Fushigi-Bfres-Tile-Rendering\Fushigi-Bfres-Tile-Rendering\Fushigi\Program.cs:line 40

Trackpad tap-to-click not working.

Describe the bug
Tap-to-click on a trackpad from a laptop will not respond. You cannot interact with any element by tapping the trackpad.

To Reproduce

  1. Make use of a laptop or similar device with a trackpad.
  2. Try using the tap function to click on a button or menu item.
  3. Nothing should happen.

Expected behavior
The tapping should be usable to interact with the GUI.

Operating System:
Arch Linux, using X11 with KDE Plasma 5.
Seems to also happen on Windows in a different program with a similar ImGuiController (the one mentioned below).

Additional context
The issue is most probably within the ImGuiController as the one that is included in Silk.NET.OpenGL.Extensions.ImGui has this same issue.

Fushigi crash upon selecting any actor from within level with missing actors

Describe the bug
I deleted many elements in 1-1, so I can't determine what specifically is inducing the crash, but the level file attached will cause Fushigi to outright crash when any element is selected.

To Reproduce
Steps to reproduce the behavior:

  1. Download the attached level and load it with Fushigi
  2. Select any actors within the main area
  3. See error

Expected behavior
Fushigi not to crash

Screenshots
Screenshot (42)

Operating System:
Microsoft Windows 11 Home 10.0.22621 Build 22621

Attached Files:
Crashing Level.zip

Additional Information:
The level in question will load in-game properly

HELPP

Describe the bug
A clear and concise description of what the bug is and what error Fushigi outputs.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Add screenshots or a video to help explain the issue.

Operating System:
Please describe what operating system you are using when running Fushigi.

Additional context
Any additional context / information can go here.

WoG2 level ball pipe cutscene liquid mech material and particle editor needed

hello i see you made a SMW level editor here and i was wondering if you can try to make a WoG2 Editor for making custom levels balls pipes cutscenes mechanics materials and particles to it because I've seen a trailer that WoG2 is coming this May 23 https://www.youtube.com/watch?v=xBvrQIzmLP8 and i was wondering if you could try making the editors for it after its out this May 23 that will be perfect and also don't forget the chapter and map editor to for it ok

HELP

Describe the bug
it's not letting me open the romFS path

To Reproduce
Steps to reproduce the behavior:

  1. Go to RomFS game path
  2. Click on the romFS game path I selected
  3. it's telling me it doesn't have the model and stage files, but it does have the BancMapUnit
  4. See error

Expected behavior
I downloaded a blank level template. but it's still not working

Screenshots
Screenshot 2024-02-17 153629

Operating System:
Windows 11

Additional context
I have git and .NET installed too

tinyfiledialogs doesn't support glibc version that ubuntu 20.04 uses

user@linuxpc1:~/downloads/Fushigi/Fushigi/bin/Release/net8.0/linux-x64$ DOTNET_ROOT=~/opt/dotnet-8 ./Fushigi
--
  | Unhandled exception. System.DllNotFoundException: Unable to load shared library 'tinyfiledialogs' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
  | /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/user/downloads/Fushigi/Fushigi/bin/Release/net8.0/linux-x64/tinyfiledialogs.so)
  | /home/user/opt/dotnet-8/shared/Microsoft.NETCore.App/8.0.0-rc.2.23479.6/tinyfiledialogs.so: cannot open shared object file: No such file or directory
  | /home/user/downloads/Fushigi/Fushigi/bin/Release/net8.0/linux-x64/libtinyfiledialogs.so: cannot open shared object file: No such file or directory
  | /home/user/opt/dotnet-8/shared/Microsoft.NETCore.App/8.0.0-rc.2.23479.6/libtinyfiledialogs.so: cannot open shared object file: No such file or directory
  | /home/user/downloads/Fushigi/Fushigi/bin/Release/net8.0/linux-x64/tinyfiledialogs: cannot open shared object file: No such file or directory
  | /home/user/opt/dotnet-8/shared/Microsoft.NETCore.App/8.0.0-rc.2.23479.6/tinyfiledialogs: cannot open shared object file: No such file or directory
  | /home/user/downloads/Fushigi/Fushigi/bin/Release/net8.0/linux-x64/libtinyfiledialogs: cannot open shared object file: No such file or directory
  | /home/user/opt/dotnet-8/shared/Microsoft.NETCore.App/8.0.0-rc.2.23479.6/libtinyfiledialogs: cannot open shared object file: No such file or directory
  |  
  | at TinyDialogsNet.Dialogs.tinyfd_messageBox(String title, String message, String dialogType, String iconType, Int32 defaultButton)
  | at TinyDialogsNet.Dialogs.MessageBox(MessageBoxButtons buttons, MessageBoxIconType iconType, MessageBoxDefaultButton defaultButton, String title, String message)
  | at Fushigi.RomFS.SetRoot(String root) in /home/user/downloads/Fushigi/Fushigi/RomFS.cs:line 15
  | at Fushigi.util.UserSettings.Load() in /home/user/downloads/Fushigi/Fushigi/util/UserSettings.cs:line 36
  | at Program.<Main>$(String[] args) in /home/user/downloads/Fushigi/Fushigi/Program.cs:line 5
  | Aborted (core dumped)

Ubuntu 20.04 is one of the ubuntu LTS builds, and some software still requires it over 22.04, so I'd say it'd be a good idea to support it.

crash on startup

Describe the bug
crashing when loading a course on open
console outputs this:

Error compiling shader of type VertexShader, failed with error WARNING: 0:3: '#extension' : 'GL_ARB_gpu_shader_int64' is not supported
WARNING: 0:4: '#extension' : 'GL_ARB_shader_ballot' is not supported
WARNING: 0:6: '#extension' : 'GL_EXT_shader_image_load_formatted' is not supported
WARNING: 0:7: '#extension' : 'GL_EXT_texture_shadow_lod' is not supported
WARNING: 0:9: '#extension' : 'GL_ARB_shader_viewport_layer_array' is not supported
WARNING: 0:10: '#extension' : 'GL_NV_viewport_array2' is not supported

Error compiling shader of type FragmentShader, failed with error WARNING: 0:3: '#extension' : 'GL_ARB_gpu_shader_int64' is not supported
WARNING: 0:4: '#extension' : 'GL_ARB_shader_ballot' is not supported
WARNING: 0:6: '#extension' : 'GL_EXT_shader_image_load_formatted' is not supported
WARNING: 0:7: '#extension' : 'GL_EXT_texture_shadow_lod' is not supported
WARNING: 0:9: '#extension' : 'GL_NV_viewport_array2' is not supported

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Silk.NET.OpenGL.GL.DrawElements(Silk.NET.OpenGL.PrimitiveType, UInt32, Silk.NET.OpenGL.DrawElementsType, Void*)
at Fushigi.gl.Bfres.BfresRender+BfresMesh.Draw(Silk.NET.OpenGL.GL)
at Fushigi.gl.Bfres.BfresRender+BfresMesh.RenderGameShaders(Silk.NET.OpenGL.GL, Fushigi.gl.Bfres.BfresRender, BfresModel, System.Numerics.Matrix4x4, Fushigi.gl.Camera)
at Fushigi.gl.Bfres.BfresRender+BfresModel.Render(Silk.NET.OpenGL.GL, Fushigi.gl.Bfres.BfresRender, System.Numerics.Matrix4x4, Fushigi.gl.Camera)
at Fushigi.gl.Bfres.BfresRender.Render(Silk.NET.OpenGL.GL, System.Numerics.Matrix4x4, Fushigi.gl.Camera)
at Fushigi.gl.Bfres.VRSkybox.Render(Silk.NET.OpenGL.GL, Fushigi.gl.Camera)
at Fushigi.gl.Bfres.VRSkybox.RenderToTexture(Silk.NET.OpenGL.GL)
at Fushigi.gl.Bfres.AreaData.AreaResourceManager.ReloadPalette(Silk.NET.OpenGL.GL, Fushigi.env.EnvPalette)
at Fushigi.gl.Bfres.AreaData.AreaResourceManager..ctor(Silk.NET.OpenGL.GL, Fushigi.env.EnvPalette)
at Fushigi.ui.widgets.LevelViewport..ctor(Fushigi.course.CourseArea, Silk.NET.OpenGL.GL, Fushigi.ui.CourseAreaScene)
at Fushigi.ui.widgets.CourseScene+<>c__DisplayClass18_2.b__1(Silk.NET.OpenGL.GL)
at Fushigi.gl.GLTaskScheduler+<>c__DisplayClass1_0`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].b__0(Silk.NET.OpenGL.GL)
at Fushigi.gl.GLTaskScheduler.ExecutePending(Silk.NET.OpenGL.GL)
at Fushigi.ui.MainWindow.Render(Silk.NET.OpenGL.GL, Double, Fushigi.windowing.ImGuiController)
at Fushigi.windowing.WindowManager+<>c__DisplayClass10_0.b__1(Double)
at Silk.NET.Windowing.Internals.ViewImplementationBase.DoRender()
at Fushigi.windowing.WindowManager.Run()
at Program.

$(System.String[])

To Reproduce
Steps to reproduce the behavior:

  1. open fushigi

Expected behavior
open course

Operating System:
windows 11

Moving a Wall Point and an Actor that intersect moves both at the same time

Wall points can be moved around in Fushigi, however an issue occurs when a wall point intersects an actor. If an actor is in the clicking range to a wall point, then what will happen is that both the actor and the wall point will be selected.

The main issue with this is that you cannot undo an actor that was moved when the wall point is moved, it will only move back the point and not the actor as well because Fushigi thinks that only the wall point was selected.

Example Video

WKrsaYlB.mp4

How to Reproduce the Issue

  1. Open Fushigi and open any course (I used Course900's main area in the example video)
  2. Find a wall point that intersects with an actor
  3. Upon moving the wall point, the actor will be moved at the same time.
  4. Optionally, you can try undoing and the movement you made to the actor won't be undone. Only the wall point will be undone.

It's not working!

I have downloaded dotnet 8.0.0, but whenever I try to open the application, it just crashes. Idk why, someone plz help.

Create a Bash build file

Description

We can create a Bash script that runs the commands mentioned on the readme.
This will make it easier for users who are trying to build the project in one single step.

Let me know your thoughts. Thanks. 🙂

Crashes with rails

Describe the bug
Fushigi crashes when i try to save after creating a new rail (i think it only happened with custom levels that i made before and now i'm trying to edit again, because with 1-1 it doesn't happen) and no error log is generated

f

idk what's wrong with rails, but it started to crash fushigi for me in a lot of different ways, other crash was that... when the "Dynamic" nodes of the rail and its points generated on the course file , the level won't open again, and the only solution was to delete all the info on those nodes (i don't know if this one is fixed now)

Captura de pantalla (2577)

this is the only thing i can show without the log

Publish as a Flatpak to Flathub

I know this is a little early for this sort of stuff, but I intend to work on it myself and mostly wanted to get some feedback if this is even wanted, ideally this would be marked as verified on flathub.
I think org.freedesktop.Platform//23.08 is a good runtime to target, with the org.freedesktop.Platform.GL.default//23.08 extension for graphics and the sdk for dotnet 8 org.freedesktop.Sdk.Extension.dotnet8.
Here the official documentation for building a flatpak, and the repo for the sdk has some instructions.

Random crash when trying to add terrain wall/belt

Describe the bug
Fushigi sometimes crashes when I try to add a terrain wall or belt.

To Reproduce
Steps to reproduce the behavior:

  1. Try to add terrain until the software crashes.

Expected behavior
No crashes.

The Final Battle stage crashes

Describe the bug
When trying to open 'The Final Battle! Bowser's Rage Stage' in Fushigi, the editor crashes almost immediately.

To Reproduce
Steps to reproduce the behavior:

  1. File --> Open Course
  2. Select the final battle stage

Expected behavior
Level opens correctly.

Operating System:
Windows 10, 64-bit

Assistant rails

Describe the bug
Assistantrails are messed up. Instead of stopping the object, it keeps going back and forth.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a level with an assistantrail object
  2. Save the level

Expected behavior
Work as intended

Screenshots
Video

Operating System:
Windows

Additional context

There's actually another bug with other rails not working, but DonavinDraws made a version where they're fixed. Assistantrails aren't fixed though.

Resize malfunction

Resizing most of the enemies makes them unable to be loaded in the game

Liquid Tag Crash

Checking the actor of any of the liquid tags makes the editor instantly crash

Editor locks onto the "Area Parameters" box when pressing the up arrow, preventing you from moving the camera up.

When focused into the viewport tab, if you press or hold the up key, it will mouse you over the "Area Parameters" and stop you from moving the camera upwards.

Steps to reproduce the behavior:

  1. Click on the Viewports tab in Fushigi.
  2. Press and hold the Up key
  3. Camera moves once and then completely stops.
  4. When in this state, you also can't move to the left.

Obviously the intended functionality is for it to just smoothly move the camera upwards when holding the up key.

image

I use Windows 11.

Resolution & scaling isn't working properly

I tried running this program on a 4k screen with 225% scaling but the program seems to be designed for 1080p only rn

To Reproduce
Steps to reproduce the behavior:
Open the program

Expected behavior
Scale the program accordingly to the scalefactor and resolution of the screen

Screenshots
4k - 225% scaling
Screenshot 2023-11-07 171052

4K - 100% scaling
Screenshot 2023-11-07 171224

1080p -100% scaling
Screenshot 2023-11-07 171335

Operating System:
Windows 11 Version 22H2 (Build 22621.2428)

copy/paste request

Hello, i am using your editor a lot of time and i really appreciate your work which i think is almost finished.
however i create this issue because i think there is a feature cruelly lacking : the copy/paste.

i am aware that you are focusing on actual functionnalities from the game itself (as developpers).
but i want to give you my feedback from the point of view of a user.

the copy paste is necessary when we have the ambition to make an actual full level (and not just experimenting some testing).

to be more precise, here is a suggestion of how it could be working :
we could have the possibility to draw a rectangle and add all the actors in that rectangle into the current selection (it must not deselect a previous set of actors, it perform a "union set" operation).
for example we could have : "clic (outside of any actor) + slide + release" to draw the rectangle.

if we do "clic + release" without sliding (and outside of any actor), it will deselect everything just like current behavior.

and then right clic and "paste" to paste a copy of all selected actors to a new location.

thanks for reading my blabbering.

Fushigi crashing at startup

Describe the bug
Fushigi crashes after the "Initializing Window" line in terminal

the terminal says:
Starting Fushigi v0.6...
Not running on osx
Loading user settings...
Loading parameter database...
Loading area parameter loader...
Checking for imgui.ini
Initializing Window

To Reproduce
Steps to reproduce the behavior:
build Fushigi from source
go to Fushigi\Fushigi\bin\Debug\net8.0
run Fushigi.exe

Operating System:
Windows 11

.net info
.NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.6c33ef20

Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win-x86
Base Path: C:\Program Files (x86)\dotnet\sdk\8.0.100\

installed.NET-Workloads:
Workload version: 8.0.100-manifests.6c33ef20
Es sind keine installierten Workloads zum Anzeigen vorhanden.

Host:
Version: 8.0.0
Architecture: x86
Commit: 5535e31a71

.NET SDKs installed:
8.0.100 [C:\Program Files (x86)\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.22 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.11 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.22 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.11 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x64 [C:\Program Files\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Various Course Loading Crashes

Platform: OSX

While browsing through the levels I decided to try and load up every course and document what errors or crashes occurred.

Here is a list of all the errors I noticed on course loading:

  1. Some Courses do not have a BgUnits field defined which causes an exception in this line
    • Example Course: World005 - Course043_Course
  2. Some Courses do not have a Walls field defined which causes an exception in this line
    • Example Course: World009 - Course850_Course
  3. Two Courses seem to cause a Hard Crash w/ out any trace back
    • World009 - Course859_Course
    • World008 - Course063_Course - Course063_Sub1
  4. The Course Course460_Course is defined in every world but worlds 8/9. This may be intentional for some reason, but it does cause some weird interactions (such as with the Radio UI, once you select one, all of them are selected)

Deleting an object tied to a rotation controller, then saving the level will crash fushig

Delete an object tied to a rotation controller then save the level and Fushigi will throw an "Object reference not set to an instance of an object" error, you can find plenty objects tied to rotation controllers in 1-1 to verify the issue. Deleting all objects tied to a rotation controller and then the rotation controller itself does not seem to help the case, however I cannot verify this with certainty as it's possible I'm forgetting to delete an object
Screenshot (41)

AreaSwitchLocal's and AreaPoisonSwampBox's green boxes are rendered as if the translation position is the bottom center instead of the middle.

AreaSwitchLocal and AreaPoisonSwampBox's (Probably other Area objects too) have their green boxes rendered from the bottom center instead of the middle like in game. This is probably code from CameraArea, though that is just a random guess.

Steps to reproduce the behavior:

  1. Place down an AreaSwitchLocal or an AreaPoisonSwampBox.
  2. See that it is half of it's height above where you place it.

AreaSwitchLocal's and AreaPoisonSwampBox's are positioned with the translation position being the middle of their objects in game, and as such, the green box should represent that.

In this screenshot, the bottom of the AreaSwitchLocal should be touching the bottom of the floor, as it is in game, but instead it is floating half of it's height above the ground.
image

I am running Windows 11.

Hopefully this helps, I don't think this is related to the model rendering engine, so I am just making sure this is known and easy to find.

Crash on Save at stage 007

When Saving the level at the stage 007 of world 1 the editor fails and crashes

This is what the console said before crashing:
image

Crash when linking actor to empty rail

Describe the bug
Fushigi crashes when trying to link an actor to a rail with no rail points.

To Reproduce
Steps to reproduce the behavior:

  1. Add an actor and a rail with no points.
  2. Add a new entry in "Actor to Rail Links"
  3. Select the empty rail.

Expected behavior
Either:

  • The rail cannot be selected without points
  • The actor links successfully (with warning)

Operating System:
Windows 10, 64-bit

I would love to contribute to Fushigi

I am good at graphic design and can do some bugfixing as well, or at least find the source of a bug. I am not super good at coding but would love to help all the same!

Unit 0 GLD_TEXTURE_INDEX_2D is unloadable Mac M1

Describe the bug
Textures won't load so Fushigi crashes when opening a course

To Reproduce

When opening Fushigi this pops up in the Terminal

Zerp@MacBook-Pro Fushigi % /Users/zerp/Desktop/Fushigi/Fushigi/bin/Debug/net8.0/Fushigi
Starting Fushigi v0.6...
Running on osx
Loading user settings...
Loading parameter database...
Loading area parameter loader...
Checking for imgui.ini
Creating imgui.ini...
Created!
Initializing Window
RomFS::GetFileBytes() -- Pack/Bootup.Nin_NX_NVN.pack.zs
UNSUPPORTED (log once): POSSIBLE ISSUE: unit 0 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable

Expected behavior
I expected that the texture will load

Operating System:
Mac M1

Additional context
It seems that it is a problem with openGL in combination with the M1 chip

There’s actually a glitch in Apples custom GLSL compiler. So if you’re using a float in a vertex shader and casting it as an int to index into an array ( or do a switch statement), it will error out. So you’ll have to use if statements.
https://www.reddit.com/r/opengl/comments/oc8ec1/opengl_on_mac/

Crash if the game dump is v1.0.1

Describe the bug
The editor crashes if the game dump is a version 1.0.1 dump

To Reproduce
Steps to reproduce the behavior:

  1. Open Fushigi
  2. Set the game path to a v1.0.1 dump
  3. Crash
  4. Reopen Fushigi
  5. Crash

Operating System:
Windows 10 22H2 v19045.380

Placing first point of wall crashes Fushigi

Describe the bug
When trying to add a point on a newly created Wall, Fushigi crashes.

Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Fushigi.ui.SceneObjects.bgunit.BGUnitRailSceneObj.OnMouseDown(CourseAreaEditContext ctx, LevelViewport viewport) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\SceneObjects\bgunit\BGUnitRailSceneObj.cs:line 169
   at Fushigi.ui.SceneObjects.bgunit.BGUnitRailSceneObj.Fushigi.ui.widgets.IViewportDrawable.Draw2D(CourseAreaEditContext ctx, LevelViewport viewport, ImDrawListPtr dl, Boolean& isNewHoveredObj) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\SceneObjects\bgunit\BGUnitRailSceneObj.cs:line 300
   at Fushigi.ui.widgets.LevelViewport.<>c__DisplayClass46_0.<DrawAreaContent>b__0(IViewportDrawable obj) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\widgets\LevelViewport.cs:line 781
   at Fushigi.ui.CourseAreaScene.ForEach[T](Action`1 action) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\CourseAreaScene.cs:line 153
   at Fushigi.ui.widgets.LevelViewport.DrawAreaContent() in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\widgets\LevelViewport.cs:line 778
   at Fushigi.ui.widgets.LevelViewport.Draw(Vector2 size, Double deltaSeconds, IDictionary`2 layersVisibility) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\widgets\LevelViewport.cs:line 332
   at Fushigi.ui.widgets.CourseScene.DrawUI(GL gl, Double deltaSeconds) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\widgets\CourseScene.cs:line 222
   at Fushigi.ui.MainWindow.Render(GL gl, Double delta, ImGuiController controller) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\MainWindow.cs:line 339
   at Fushigi.windowing.WindowManager.<>c__DisplayClass10_0.<RegisterRenderDelegate>b__1(Double deltaSeconds) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\windowing\WindowManager.cs:line 83
   at Silk.NET.Windowing.Internals.ViewImplementationBase.DoRender()
   at Silk.NET.Windowing.WindowExtensions.<>c__DisplayClass2_0.<Run>b__0()
   at Silk.NET.Windowing.Internals.ViewImplementationBase.Run(Action onFrame)
   at Silk.NET.Windowing.WindowExtensions.Run(IView view)
   at Fushigi.ui.MainWindow..ctor() in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\ui\MainWindow.cs:line 90
   at Program.<Main>$(String[] args) in C:\Users\Aikoyori\Desktop\Games\Fushigi\Fushigi\Program.cs:line 40

To Reproduce
Steps to reproduce the behavior:

  1. Go to Terrain Unit > Add Wall
  2. Select the wall in Terrain Unit Menu
  3. Alt + Click on Viewport to Create a point

Expected behavior
A new point is created and made as first point of the wall.

Actual behavior
Fushigi crashes.

Screenshots

Video of it happening is attached below.

Fushigi_20231204-024317.mp4

Operating System:
Windows 11 23H2 Build 22631.2715

Additional context
This build is compiled from 627002d as a Debug build per instruction in https://github.com/shibbo/Fushigi/blob/627002d5b5694d0f9b660bc1bcbb89a5a5c1591e/README.md#instructions
Note that this worked back on https://github.com/shibbo/Fushigi/releases/tag/v0.6-alpha

Here's a video on v0.6-alpha

Fushigi_20231204-025855.mp4

Deleting specific actor doesn't remove hitbox

Describe the bug
While experimenting on Course001_Course, I deleted a "BlockRenga", and played the course as is, however, the game behaves as if the block was still there, but functions like an "AirWall".

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Course001_Course'
  2. Delete any "BlockRenga" that was already provided by the default layout
  3. Save and load the game with these changes
  4. Have the player interact with the spot where the "BlockRenga" once was

Expected behavior
Deleting the block should not leave any trace of it

Operating System:
Windows 11

Unhandled exception

Describe the bug
The cmd line spits out this:
Unhandled exception. System.Exception: FileUtil::DecompressFile -- File not found. (D:\Games\Super Mario Bros. Wonder\user\dump\010015100B514000\romfs\BancMapUnit\Course001_Course.bcett.byml.zs)
at Fushigi.util.FileUtil.DecompressFile(String filePath) in D:\Hacking\Switch\Fushigi\Fushigi\util\FileUtil.cs:line 25
at Fushigi.course.Course.LoadFromRomFS() in D:\Hacking\Switch\Fushigi\Fushigi\course\Course.cs:line 36
at Fushigi.course.Course..ctor(String courseName) in D:\Hacking\Switch\Fushigi\Fushigi\course\Course.cs:line 21
at Fushigi.ui.MainWindow.LoadFromSettings(GL gl) in D:\Hacking\Switch\Fushigi\Fushigi\ui\MainWindow.cs:line 109
at Fushigi.ui.MainWindow.Render(GL gl, Double delta, ImGuiController controller) in D:\Hacking\Switch\Fushigi\Fushigi\ui\MainWindow.cs:line 273
at Fushigi.windowing.WindowManager.<>c__DisplayClass10_0.b__1(Double deltaSeconds) in D:\Hacking\Switch\Fushigi\Fushigi\windowing\WindowManager.cs:line 83
at Silk.NET.Windowing.Internals.ViewImplementationBase.DoRender()
at Silk.NET.Windowing.WindowExtensions.<>c__DisplayClass2_0.b__0()
at Silk.NET.Windowing.Internals.ViewImplementationBase.Run(Action onFrame)
at Silk.NET.Windowing.WindowExtensions.Run(IView view)
at Fushigi.ui.MainWindow..ctor() in D:\Hacking\Switch\Fushigi\Fushigi\ui\MainWindow.cs:line 74
at Program.

$(String[] args) in D:\Hacking\Switch\Fushigi\Fushigi\Program.cs:line 19

To Reproduce
Opening Fushigi

Expected behavior
The app starting correctly

Operating System:
Windows 11

Deleting actors causes crashing

Whenever you try to delete many actors eventually it crashes and using that level I can't delete any more actors without it crashing.

To Reproduce
Steps to reproduce the behavior:

  1. Delete many actors in a row
  2. Eventually it will just crash and not let u delete any more

Expected behavior
For it too not crash.

Operating System:
Win11 x64

Additional context
None.

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.