Jump to content

[1.5.1]Gulliver (Resizing Mod) getting Forged


UncleMion

Recommended Posts

Hello folks :)

 

I've got a mod called Gulliver that allows you to change the size of the player and other entities, in both singleplayer and multiplayer: http://www.minecraftforum.net/topic/1112856-125smp-gulliver-the-resizing-mod-changing-your-perspective-of-minecraft

 

Currently Gulliver uses ModLoader and supports ModLoaderMP.  I would like to add Forge compatibility so my users can play with their Forge-based mods, not to mention that I've been wanting to see how well it works with RedPower sub blocks (drop ceilings & ductwork tunnels! :D)

 

Important caveat: Gulliver changes scads of base classes.  I plan to reduce the number of base class changes eventually, but I doubt I can get away with not modifying any base classes, considering how much fundamental Minecraft code I've had to adjust to get this mod to work well.

 

So, got any advice for a Forge noob trying to add compatibility for a ridiculously complex but highly amusing mod? ;)

 

Oh by the way, sp614x suggested that I ask you guys to add hooks for render view positioning and perspective changes.  I'm still working out the rendering details, but would you be open to making hooks of that sort?

 

Cheers,

UncleMion

Link to comment
Share on other sites

Ah, so that's what that mod is called. I've been wanting to try it out for some time, but never actually knew the name of it. I hope you manage to get it forge compatible. Anyways, I'm gonna go get tiny. :P

Check out my

Texture Packs Thread here on the Forge Forum. :)

Currently in the process of adding some mod support for JohnSmith Texture Pack.

width=105 height=12https://www.sugarsync.com/piv/D8135159_67366891_21351[/img]

 

width=209 height=19https://www.sugarsync.com/piv/D8135159_67366891_772852[/img]

Link to comment
Share on other sites

Try to use as many Forge hooks as you can.

Then try to use Java Reflection to do what is left.

For the stragglers, try to make a new hook and try to make it as generic as possible, and submit a pull request for it to be put in to Forge proper.  :)

Thanks for the feedback :)

 

Hm, I'd like to have Gulliver be Forge compatible but not required.  I suspect that, since some of the Forged base classes I conflict with happen to implement Forge-specific interface classes, I'd be best off making 2 releases: one fully Forge compatible, one not (but close if possible).

 

So... the Forge one would need to incorporate Forge code into the base classes I modify, and the less-Forged would use reflection on existing hooks wherever it can.  Does that sound about right?

 

I'd actually try to replace code with Forge hooks if possible, but it'd be trickier to maintain 2 very divergent forks.  Probably worth it if the hooks are useful :) I'll see what I can figure out.

Link to comment
Share on other sites

What should be done is no base edits at all, Forge is trying to massively get away from mods requiring base edits as they make some things near impossible (look at the mystcraft conflicts, Forge updates rapidly while remaining backwards compatible, but mystcraft edits a lot of base classes and it cannot keep up, thus it starts breaking other mods that require the new features).  It is better to use hooks when possible, then use reflection, else make a new hook and submit it for inclusion in to Forge.  That is what Forge is, a set of useful hooks for mods to not require base edits, and anyone can submit new hooks, and as long as they are not already there, cannot be done via reflection, and cannot easily be implemented in a better way, then expect it to be added straight in, else you will get feedback.  :)

Link to comment
Share on other sites

Hmm, about how often does Forge add new features?  In the "Recommended" releases at least.

 

I can't really call my mod stable until I've finished adding the main features I've got planned and done a lot of code cleanup.  I don't expect to be submitting any forge hooks until after a good thorough refactoring and consideration of what features would be useful to other mods.

 

In the meantime it's more a matter of my mod supporting Forge and not the other way around ;) It shouldn't be too much trouble to update to new versions once I've gotten the current Forge features taken care of.

Link to comment
Share on other sites

Just poke Lex here or on the IRC and he can generally give you feedback on a submitted hook quite quickly.  Recommended releases is a release that has been out for a while that has no known reported bugs, recommended usually comes out every few weeks at the slowest to a few times a week at the fastest pace, always backwards compatible though so just pick a version and work with it, or update as you need for new features.

Link to comment
Share on other sites

  • 1 month later...
  • 5 weeks later...
  • 6 months later...

Restarting the thread now that I've made a Gulliver Forged release as an April Fool's not-prank ;)

 

http://www.minecraftforum.net/topic/1112856-151mlforge-gulliver-the-resizing-mod-v0132-beta-april-1-changing-your-perspective-of-minecraft-over-90000-downloads/

 

It's only partway converted over to Forge.  There's a lot more I want to do with using Forge hooks for Gulliver where possible, but I'm afraid it's still going to be a very base-class-heavy mod.

 

My goal is to have reasonable "default" behavior for resized mobs, as well as scaled movements, block-breaking ability, etc. so that other mods are reasonably playable even before doing specific compatibility changes.

 

Anyway, y'all are welcome to try the preliminary experimental Gulliver Forged thing and let me know what you think :) I'll ask more specific questions about code structure as I go along in the integration process.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Does it work without natures_spirit and/or spectrum / adventurez?
    • Update your AMD/ATI drivers - get the drivers from their website - do not update via system
    • (i originally submitted this report to CurseForge but since we localized the issue to the modloader they pointed us here)  I am the partner of the user, GalaxyReach, assisting them as they are not as tech savvy. We have spent days troubleshooting a very weird issue that none of our other friends have with a certain modloader.  On a curse-forge launched instance of the Minecraft Launcher, clicking "play" throws an error code 1: crash log says EXCEPTION_ACCESS_VIOLATION. This exception happens in a blank, no-mods test pack as well as manually installing Forge. This issue also happens on NeoForge. We tried All of the steps withing this guide: https://support.curseforge.com/en/support/solutions/articles/9000218027-issues-related-to-the-forge-modloader namely: reinstalling the modpack reinstalling minecraft & curseforge deleting curseforge appdata updating the drivers updating the firewall the computer has been restarted several times we have tried running it on different networks manually installing & selecting java manually installing forge I don't think it is a specs/hardware issue, its a pretty good laptop (HP Omen), 16GB RAM & a 3060. It runs windows 11. Further, launching minecraft like normal through the Microsoft Store runs the game just fine. It is solely with trying to use a modded launch with Forge & NeoForge. I also tried different versions of Forge, though the specific instance I am trying to get running is 47.3.0 Is there anything else we can do here or does Forge just truly not work on this laptop?   Thank you MINECRAFT LAUNCHER GAME OUTPUT LOG 10:07:33.755 launcher main Version does not support log configuration, will assume one plaintext entry per line 10:07:36.419 game 2024-08-31 10:07:36,408 main WARN Advanced terminal features are not available in this environment 10:07:36.586 game [10:07:36] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, GalaxyReach, --version, forge-47.3.0, --gameDir, C:\Users\Micha\curseforge\minecraft\Instances\Liminal Server, --assetsDir, C:\Users\Micha\curseforge\minecraft\Install\assets, --assetIndex, 5, --uuid, 7f099235327e4206afdfbc22c7712328, --accessToken, ????????, --clientId, OWEyZTE3Y2MtOTZiOC00MWMwLWFkZjYtNmY2MDU2NmIxNDAz, --xuid, 2535442900827884, --userType, msa, --versionType, release, --width, 854, --height, 480, --quickPlayPath, C:\Users\Micha\curseforge\minecraft\Install\quickPlay\java\1725124053749.json, --launchTarget, forgeclient, --fml.forgeVersion, 47.3.0, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] 10:07:36.593 game [10:07:36] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.11 by Oracle Corporation; OS Windows 11 arch amd64 version 10.0 10:07:37.363 game [10:07:37] [main/INFO] [ne.mi.fm.lo.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow 10:07:37.452 game [10:07:37] [main/INFO] [EARLYDISPLAY/]: Trying GL version 4.6 10:07:37.503 game # 10:07:37.503 game # A fatal error has been detected by the Java Runtime Environment: 10:07:37.503 game # 10:07:37.503 game # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff8a76f59f0, pid=13980, tid=12732 10:07:37.503 game # 10:07:37.503 game # JRE version: Java(TM) SE Runtime Environment (17.0.11+7) (build 17.0.11+7-LTS-207) 10:07:37.503 game # Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.11+7-LTS-207, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64) 10:07:37.503 game # Problematic frame: 10:07:37.506 game # C [atio6axx.dll+0x1759f0] 10:07:37.507 game # 10:07:37.507 game # No core dump will be written. Minidumps are not enabled by default on client versions of Windows 10:07:37.507 game #   Debug txt:  [31Aug2024 10:07:36.584] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, GalaxyReach, --version, forge-47.3.0, --gameDir, C:\Users\Micha\curseforge\minecraft\Instances\Liminal Server, --assetsDir, C:\Users\Micha\curseforge\minecraft\Install\assets, --assetIndex, 5, --uuid, 7f099235327e4206afdfbc22c7712328, --accessToken, ????????, --clientId, OWEyZTE3Y2MtOTZiOC00MWMwLWFkZjYtNmY2MDU2NmIxNDAz, --xuid, 2535442900827884, --userType, msa, --versionType, release, --width, 854, --height, 480, --quickPlayPath, C:\Users\Micha\curseforge\minecraft\Install\quickPlay\java\1725124053749.json, --launchTarget, forgeclient, --fml.forgeVersion, 47.3.0, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] [31Aug2024 10:07:36.592] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.11 by Oracle Corporation; OS Windows 11 arch amd64 version 10.0 [31Aug2024 10:07:36.640] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmlclientdev,forgeclient,minecraft,forgegametestserverdev,fmlserveruserdev,fmlclient,fmldatauserdev,forgeserverdev,forgeserveruserdev,forgeclientdev,forgeclientuserdev,forgeserver,forgedatadev,fmlserver,fmlclientuserdev,fmlserverdev,forgedatauserdev,testharness,forgegametestserveruserdev] [31Aug2024 10:07:36.648] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp] [31Aug2024 10:07:36.664] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [mixin,eventbus,slf4jfixer,object_holder_definalize,runtime_enum_extender,capability_token_subclass,accesstransformer,runtimedistcleaner] [31Aug2024 10:07:36.672] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services [31Aug2024 10:07:36.680] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path GAMEDIR is C:\Users\Micha\curseforge\minecraft\Instances\Liminal Server [31Aug2024 10:07:36.680] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path MODSDIR is C:\Users\Micha\curseforge\minecraft\Instances\Liminal Server\mods [31Aug2024 10:07:36.680] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path CONFIGDIR is C:\Users\Micha\curseforge\minecraft\Instances\Liminal Server\config [31Aug2024 10:07:36.680] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path FMLCONFIG is C:\Users\Micha\curseforge\minecraft\Instances\Liminal Server\config\fml.toml [31Aug2024 10:07:37.354] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: [31Aug2024 10:07:37.362] [main/INFO] [net.minecraftforge.fml.loading.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow [31Aug2024 10:07:37.450] [main/INFO] [EARLYDISPLAY/]: Trying GL version 4.6  
    • https://paste.gg/p/anonymous/248d684303f44baaa4ca3aa6fb214643
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.