Jump to content
  • Home
  • Files
  • Docs
  • Merch
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • FredTargaryen

FredTargaryen

Members
 View Profile  See their activity
  • Content Count

    69
  • Joined

    November 25, 2014
  • Last visited

    September 14

Community Reputation

1 Neutral

About FredTargaryen

  • Rank
    Stone Miner

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am not new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. FredTargaryen FredTargaryen changed their profile photo September 14
  2. FredTargaryen started following [1.12.2] Rendering an Entity with an OBJModel, [1.12.2] Rendering a line, [1.12.2] Rolling the camera around a point in the world and and 5 others August 22
  3. FredTargaryen

    [1.12.2] Rendering a line

    FredTargaryen replied to xxTFxx's topic in Modder Support

    This might not help (sorry) but I have a TESR which draws long tracks which used to disappear when looked at from a certain angle, with the block off the screen. That was only fixed by overriding isGlobalRenderer, returning true. This might hurt performance if you plan to have a lot of these blocks but I didn't have any problems with about 50 of those blocks on the screen (didn't try any higher).
    • August 22
    • 18 replies
  4. FredTargaryen

    [1.12.2] Rolling the camera around a point in the world

    FredTargaryen posted a topic in Modder Support

    Hi, This gif from a 1.7.10 mod shows the camera turning as the coaster turns. It feels like the camera is fixed onto the coaster. It accomplished this with a coremod that inserted a GL11.rotated call at the start of orientCamera. For some reason, trying the same thing in 1.12.2 produces this! The camera hovers above the coaster in the world regardless of its orientation. I've experimented with a lot of different GL translations to replicate the first effect but it's been difficult trying to find translations that work for all camera orientations - made more difficult by those translations being relative to the screen rather than the world, so knowing where the camera should be in the world relative to the coaster is not enough. Trying this using the CameraSetup event has the same effect as the second gif but the mouse no longer lines up with where the player is looking. So I am hoping that anyone out there knows any of: GL commands to move the camera along the world axes instead of the screen axes How to convert some world coordinates to screen coordinates, so that maybe I can move the camera that way (I thought about maybe using the modelview matrix but don't know the best way to get hold of that) A different method that accomplishes the original effect Why the effect of added roll has changed between 1.7.10 and 1.12.2 The obvious answer that I've probably missed because of massive tunnel vision Anything else that might help Thanks for reading.
    • August 22
  5. FredTargaryen

    [1.14.4] Camera roll

    FredTargaryen replied to Cerus's topic in Modder Support

    This was flagged up as an issue on the MinecraftForge GitHub but unfortunately it hasn't gone anywhere yet.
    • August 22
    • 1 reply
      • 1
      • Thanks
  6. FredTargaryen

    [1.13] Obtain ResourceLocation of new TileEntity?

    FredTargaryen replied to FredTargaryen's topic in Modder Support

    Sorry, I screwed up. The TileEntityType was null because I had forgotten to make that variable an ObjectHolder. Thank you anyway!
    • March 9
    • 2 replies
  7. FredTargaryen

    [1.13] Obtain ResourceLocation of new TileEntity?

    FredTargaryen posted a topic in Modder Support

    My mod is supposed to allow users to customise any tile entity's behaviour by entering its ResourceLocation string and other parameters in a text file. This text file is imported at runtime and used to add Capabilities. For a given TileEntity object , it should obtain the ResourceLocation and use that to search the data imported from the text file. In 1.12, I got that data for any given TileEntity by using the registry in the TileEntity class, which mapped between ResourceLocations and TileEntity Classes. In 1.13, it looks like that registry has been replaced with ForgeRegistries.TILE_ENTITIES, which maps between TileEntityTypes and ResourceLocations. However, when a Capability is constructed I can't get the TileEntityType because TileEntity variables are always null or 0 when Capabilities are being added. It seems that the Class is the only distinguishing information I can get from a TileEntity object when Capabilities are being attached. Is there a simple way around this that will let me keep using ResourceLocations, or will I need to ask users to enter the Class name instead of the ResourceLocation? Thanks for reading.
    • March 9
    • 2 replies
  8. FredTargaryen

    [1.12.2]Safely changing ResourceLocation used to register a TileEntity

    FredTargaryen replied to FredTargaryen's topic in Modder Support

    Ah, I'll look into DataFixers then. Thank you!
    • January 9
    • 6 replies
  9. FredTargaryen

    [1.12.2]Safely changing ResourceLocation used to register a TileEntity

    FredTargaryen replied to FredTargaryen's topic in Modder Support

    Well like I say I didn't see MissingMappingsEvent fired for tile entities. GameData doesn't seem to call makeRegistry for tile entities either. I'll change the ResourceLocations; guessing because your way is harder to screw up and avoids an extra function call?
    • January 9
    • 6 replies
  10. FredTargaryen

    [1.12.2]Safely changing ResourceLocation used to register a TileEntity

    FredTargaryen replied to FredTargaryen's topic in Modder Support

    Yep, I don't want to lose data from a world made before changing the ID. The TileEntity stores teleporter data, so on a world with lots of teleporters players would have to break and replace all their teleporters and that could be tedious with a lot of teleporters in the world. I also have another TileEntity which has an inventory, and I wouldn't want players' items to be destroyed. I can keep the IDs the way they are; I'd just like to be able to change the ID to make my code a bit more consistent.
    • January 8
    • 6 replies
  11. FredTargaryen

    [1.12.2]Safely changing ResourceLocation used to register a TileEntity

    FredTargaryen posted a topic in Modder Support

    I want to change the line GameRegistry.registerTileEntity(TileEntityFireplace.class, new ResourceLocation(DataReference.MODID+":fireplaceTE")); to GameRegistry.registerTileEntity(TileEntityFireplace.class, new ResourceLocation(DataReference.MODID+":fireplace")); but if I run post-change Minecraft with a pre-change world I get the error [15:23:33] [Server thread/WARN] [minecraft/TileEntity]: Skipping BlockEntity with id ftfloocraft:fireplace and the TileEntity is gone, because there doesn't seem to be an opportunity to remap the pre-change TileEntity to the post-change ResourceLocation. MissingMappingsEvent didn't seem to fire for TileEntities. My only idea right now is to register the tile entity once with the old ResourceLocation and once with the old one, and then somehow migrate the NBT data over. Is there a better way? Thanks for reading.
    • January 8
    • 6 replies
  12. FredTargaryen

    A general "RenderEntityEvent"

    FredTargaryen replied to FredTargaryen's topic in Suggestions

    Do you happen to know why? It seems like a deliberate decision
    • July 9, 2018
    • 6 replies
  13. FredTargaryen

    A general "RenderEntityEvent"

    FredTargaryen posted a topic in Suggestions

    Something I'm working on right now needs to be able to rotate minecarts on the z axis before they render, so I wrote the whole thing thinking there would be some kind of RenderEntityEvent I could use. I've found RenderPlayerEvent and RenderLivingEvent but I can't find anything that fires for just any entity. My guess is it hasn't been implemented because it would fire a lot, which I sort of understand. I'd really appreciate one of these in a future Forge version, or at least the reason why it hasn't been implemented... or if it actually has been implemented can someone please tell me how to use it? I know one workaround involving overriding the handler in RenderingRegistry; as far as I can tell registering the new handler requires you to know the class of the entity to override, which is not great if you want to use Capabilities to work with mod entities as well. Thanks for reading.
    • July 9, 2018
    • 6 replies
  14. FredTargaryen

    [1.12.2] Spawning an entity resulting in a crash

    FredTargaryen replied to abused_master's topic in Modder Support

    The log says the crash is because of line 26 of EntityKnowledge, in the constructor, but in your pasted EntityKnowledge code line 26 is just defining canBeRidden... is that definitely the same EntityKnowledge code that produced that crash log?
    • July 9, 2018
    • 2 replies
  15. FredTargaryen

    [1.12.2] Rendering an Entity with an OBJModel

    FredTargaryen replied to FredTargaryen's topic in Modder Support

    Ah never mind, I messed up. Code from 1.7.10 does work after all. Oops😅
    • July 1, 2018
    • 1 reply
  16. FredTargaryen

    [1.12.2] Is there a correct way to freely control the camera?

    FredTargaryen replied to FredTargaryen's topic in Modder Support

    Sneaky bump just in case; won't do it again
    • July 1, 2018
    • 1 reply
  17. FredTargaryen

    [1.12.2] Rendering an Entity with an OBJModel

    FredTargaryen posted a topic in Modder Support

    Hi everyone, I've been porting a mod from 1.7.10 which had no problem rendering entities with models imported from .obj files; it just called renderAll() and that was that. I didn't find something similar in 1.12.2 so have naively written my own renderer, which looks like this (renderWithNormal function): https://github.com/fredtargaryen/ExRollerCoaster/blob/1.12.2/src/main/java/erc/renderer/ModelRenderer.java Here's the result: https://imgur.com/a/EJbBQ31 So it looks like if it's going to render a face, it won't render any faces that share an edge with that face... the problem is probably deeper than just that though. Things I've considered so far: Invalid .obj file: the .obj worked with 1.7.10, and importing it in Blender shows all the triangles. Bad renderer: I have copied the rendering code from decompiled Forge 1.7.10, and as far as I can see the model was the same. Personally I can't see why my naive renderer wouldn't work. Model importing wrong: the OBJModel object has the same number of faces as the .obj file has. There might be some kind of check the importing code does which changes point coordinates; I haven't checked whether all the values are the same yet because that could be a long, tedious process. So my guess is there's some quirk with how 1.12.2 does graphics, that may have led to that renderAll system being removed? Though of course I am open to the suggestion that my renderer's bad. Anyone know what's going on here? Thanks for reading.
    • July 1, 2018
    • 1 reply
  • All Activity
  • Home
  • FredTargaryen
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community