Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(yItems.tIngot, 9), true, new Object[]{"F",'F', "blockTitanium"}));
  2. Block blck = world.getBlock(x, y, z); blck.dropBlockAsItem(...);
  3. You realize that one of your TEs is worth 3072 triangles, right? A standard block is 12...
  4. Basically: Remember to run the game as a client/server pair through Eclipse. Use the dropdown arrow on the "run" button to see the options. Run both, connect to the local server with the client, wait for something to explode.
  5. Touche. Point was, for 99% of usage, a modder doesn't have to treat them differently from what I recall. With the new JSON files, it's completely obfuscated as to what actually happens serverside and what happens client side. I, as a modder, don't need to care but I do need to make sure that I call world.playSound(...) on the server or it won't work correctly.
  6. Your items aren't saving because your for loop is fucked up.
  7. Oh I love these. Lets see here... This error, this "MissingModsException" is a crash related to the fact that a Mod is Missing.
  8. The client only knows about one world: the world the client is in.
  9. ...you're going to need to figure out for loops before you can even get to GL11 operations.
  10. Optional in the sense that if you don't have it, the program can still function...for some definition of function. It is possible to write a for loop thus: for(;{ //code } But you kind of have to know WTF you're doing to use it that way. Also, the missing i++ is not your only problem.
  11. Actually, sounds are/were both client and server. The server had to relay the fact that sounds were occurring to all clients. The server never plays the sound file, but it does know about it. Particles are kind of the same way.
  12. Yes. Write the value to the file when it is modified. And yes, you can do that. Property cw = config.get("General","myconfig", true); /*do something to it*/ cw.set(new_value); The best part is, you can save your config file reference as a static property (gasp!) and access it from anywhere at any time (shock!) or if absolutely needed, you can use the FileIO classes directly (awe!)
  13. for(a; b; c) { d } is the same thing as a; while(b); { d; c; } Hint: where are you changing the value of i? Edit: Whoops. Made a mistake late last night.
  14. Do you know how to loop? At all? This line is wrong, very very wrong. for(int i =1;i==inv.length;)
  15. There's also "cheaty" ways of doing what you need. If you're just trying to render an item, you can do this: RenderManager.instance.renderEntityWithPosYaw(es.itemEnt, 0, 0, 0, 0, 0); 'es' is the TileEntity being rendered (this line is in my TileEntitySpecialRenderer and Model class structure) and the TE holds a reference to an item entity object (the object you get when you drop items on the ground, but this one is not added to the world) and then I just tell the renderer to render it (and have some GL11 calls to position and rotate it where I'd like it to render). See line 57: https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/client/ModelPedestal.java
  16. Ha, that worked, awesome.
  17. If anyone finds one (or makes one) I'd love to know. The schematic converter I have is from 1.5 and while functional, it's a pain to go in and update all the references.
  18. Usually, but not always. Check each mod's forum thread (or wherever you got it) and see if they have known issues. For example, I know that Mystcraft is not compatible with 1.7.10 (well, it is now, there was an update) due to using other dimensions. Basically, everything was fine unless you went into a Mystcraft age, then it shat the bed. Or if you have a bunch and don't want to check them all individually, back up your save before trying 1.7.10. If something goes pear shaped, at least you have a backup.
  19. I have no idea what's wrong here, but essentially my problem boils down to this: When using the GUI for my block, all the slots update correctly, including the output slot. When using a hopper to input (or extract) items, the output slot does not update at all (although it is saved, exiting and reloading shows the correct stack size). I'm not even sure where to look for trying to solve this as it only occurs when specifically using the hopper (not using any mod added item transport). And yes, I am using markDirty().
  20. Yeah, that's what I thought. I'll mess with it again, but when I tried pointing it at "C:\Program Files\Java\jdk1.7.0_45" (this is my work computer, but the version number looks the same) it still failed with the same error. Edit: For extra WTF, my work machine (where I was able to successfully install Forge) does not have a JAVA_HOME environment variable: o..O
  21. OK I figure out what the problem is, not sure what I need to do to fix it. Apparently, my JAVA_HOME variable doesn't point to the JDK (which I do have installed). Not sure where I need to point things.
  22. Was in the middle of a post, and trying a fresh install (around half done), when my computer abruptly shut down so hard and fast Firefox lost all my open tabs (including recently closed history). Not quite. Download Forge Src, unzip, run gradlew setupDevWorkspace, run gradlew eclipse, point Eclipse at the "eclipse" folder, try to run the game, start this thread, try suggestions in the first reply (run gradlew setupDecompWorkspace, run gradlew eclipse), still have issues, make my last post. I did the commands separately, as that's what Forege's README says, as well as recalling issues from the early days when piping the two commands would cause it to fail. Note that 'setupDecompWorkspace' is not mentioned in the readme itself. For shits and giggles, I'm in the process of starting over (as I'm on a different machine). Download Forge Src, unzip, run gradlew setupDecompWorkspace eclipse, point Eclipse to the "eclipse" folder. Start Eclipse, click play button.... (...Saving post...) Ok that worked. I'll have to poke at my home machine tomorrow (busy tonight) and see what the difference is.
  23. Yes I ran gradlew eclipse. Even re-ran it. And no, it still doesn't work. And even after setupDecompWorkspace I don't have javadoc/sourcefiles.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.