Jump to content

jakj

Members
  • Posts

    3240
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by jakj

  1. Yeah, I've been super lazy and played games for a while instead of coding. Figured a break was okay since there aren't any massive destructive bugs right now and I had coded nonstop for weeks to get it out. I'll do a proper update at some point not too absurdly in the future. Poll time: Is it more confusing to have the blocks keep moving during lag, or would it be less confusing to have them stop but not yet exist?
  2. Lag in singleplayer on powerful PC? That's...unexpected. But then again, 120+ mods with increased memory is quite something, so it may just be that.
  3. First, I'm assuming you went into your config file and turned the continuous-mode delay to 0. If you haven't, go ahead and do that. (Make sure you're using 1.2.0.1.) The second factor here is lag: That's why it seems to move more than a block and then snap back: The client keeps rendering motion even past the first block's distance until the server catches up and finishes putting the blocks back down. The reason for this is to reduce confusion: If rendering stopped so that it looked like everything was back in place, but it wasn't actually there yet, people might get annoyed that they can't interact with it, whereas now at least it's clear it's not done yet. I'm open to feedback on how to do this better, if anyone can think of a better way. To be clear, the "extra" motion should happen only when the server->client is super laggy, the server is super overloaded, the carriage is super huge (like, thousands of blocks), or your computer is super shitty. In singleplayer with a normal computer and a normal carriage, this should never ever happen. If the extra rendering is doing more harm than good, I could just turn it off, and make it render everything in its final place even if it isn't there yet.
  4. It will not return a table: It will just return a series of values. So you would do this (probably goofy since I don't actually know Lua syntax): local drive = peripheral . wrap ( side ) local motionSucceeded , errorMessage , obstructX , obstructY , obstructZ = drive . move_anchored ( direction ) if ( motionSucceeded ) return if ( obstructX == nil ) do whatever in case of general error return do whatever in case of obstruction using the coordinates given So for example, you could use the coordinates of obstruction to implement some sort of subway tram, where you keep going until it is obstructed by a block you placed there (by comparing the X/Y/Z coordinates to the one you placed), then you change its direction, or whatever. That way you don't even have to write out how many blocks it's moved in one direction during motion.
  5. 2013-07-21 23:13:34 [WARNING] [Minecraft-Server] The save is being accessed from another location, aborting 2013-07-21 23:13:44 [iNFO] [sTDERR] net.minecraft.world.MinecraftException: The save is being accessed from another location, aborting I don't know what in the world is going on with that, but I can't imagine what in my code could possibly be causing it. Best thing you can do is start with a fresh vanilla minecraft, add nothing but forge, my mod, and the exact mods necessary for the blocks you're trying to move. See if it still crashes then.
  6. That stacktrace just leads me into the crash-report function, and doesn't tell me what actually crashed. (Minecraft's builting crash reporting is pretty much useless most of the time.) Post the actual Forge log (ForgeModLoader-client-0.log or ForgeModLoader-server-0.log, depending on if you're using the actual Minecraft program or the dedicated server) and we'll see.
  7. Congratulations! You're the first in the thread to put forth an entirely worthless and shitty bug report. If you were to actually give me any information of any kind I could actually use, since I'm not currently resident in your frontal cortex, I would be able to answer your question.
  8. Vanilla pistons don't move unrecognized tile entities, and destroying the block would close the GUI. My method is too sneaky, and it doesn't trigger the GUI to close (which is no excuse for writing code client-side that should be server-side). For player movement, it's just a matter of relaxing restrictions in exchange for risk of players not moving correctly in unusual conditions. It'll be set with config options most likely. The trick comes of doing it in multiplayer environments: The "sticky carpeting" may be the only option there. It's too much work to be able to configure every piddly little thing for every single carriage separately.
  9. That's not a bug in my mod: That's a bug in the other mod, or rather, it's a flaw in design. What's happening is 1) the GUI opens, and you have stuff in it, 2) the block moves, taking the stuff with it, but leaving the GUI open, 3) you move stuff out of the GUI into your inventory, and the GUI client-side puts it in your inventory without first checking server-side to make sure it's valid. As it stands, the other mod is just "trusting" the player to not be cheating, and also is assuming (stupidly) that nothing on the server side can change state while the GUI is open. To fix this, the author of the other mod needs to make sure that all client-side GUI actions pass through the server to check their validity. Right now, this is an open dupe exploit in the mod that can be leveraged by anyone with coding knowledge, without even using my mod. Better player motion options while on carriages is planned for a future release.
  10. Well no shit. I mean a language construct. For example: public static int , int DetermineRange ( int ... Values ) min , max = DetermineRange ( 8 , 14 , 97 , 3 , 1 )
  11. Damn, I desperately wish Java had that feature. Anyway, that solves it, then: I'll change it to abort only on syntax error, and I'll split the functions for readability.
  12. Sangar, your suggestion has elegance, but I'm a bit flabbergasted. Are you telling me that you can specify any number of variables as return values, and the trailers get populated with nil if nothing is present? So if you say successflag,errormessage,obstructionx,obstructiony,obstructionz = drive.move(...), and I return just {true}, you get {true,nil,nil,nil,nil}, and if I return {false,"foo"}, you get {false,"foo",nil,nil,nil}, and if I return {false,"bar",1,2,3}, you get {false,"bar",1,2,3}?
  13. I suggest using Immibis's microblocks for putting up complex decorations. Making each side of a carriage block have a different texture would add a huge amount of complexity (both for me and for the players), and would probably just be followed by requests to change the carriage block's shape and size too. Let's keep it simple.
  14. I'm in a very bad mood right now, and CJ is in my shitlist's Top 5.
  15. Contains DRM, author has been infecting Buildcraft with strict creative vision at the expense of third-party flexibility, author indirectly broke the fuck out of many other mods right before he went off to do other things and came back to say "lol not my fault"...
  16. You'll have to give more detail than that sketchy report. Are you saying the only time it crashes is if you close and reopen the world after you have moved the carriage, but not at any other time?
  17. Azanor has said his reason for rejecting modpack requests is because it cuts down on the support requests from users using outdated copies. Which is *almost* reasonable except not quite. He's actually one of the biggest sources of my disgust right now, because I *had* been defending him, even on this forum, saying he was a bit wrongheaded but all-in-all doing alright. In effect I lied for him. You guys tried to warn me about him, but I didn't listen: I thought you just thought he was a poopy-head, not that he actually had done nasty things. My urge to play modded Minecraft has sunk down to 1.2 levels again, i.e., zero. *sigh*
  18. You need to have an os.sleep of at least 0.1 (maybe a bit more) to allow the computer to reconfigure itself after each motion.
  19. I think that's what they're trying to get me to do, to return the error message as a value instead of aborting the process. If we can work out how to implement that in Java, then your program should not be cancelled on error in the future.
  20. Okay, guys, I can't return a Map object. I return an array of object, specifically "Object [ ]". This array can contain anything, including other arrays. Possibilities I can think of off the top of my head: [ key1 , value1 , key2 , value2 , key3 , value3 ] [ [ key1 , value1 ] , [ key2 , value2 ] , [ key3 , value3 ] ] [ [ key1 , key2 , key3 ] , [ value1 , value2 , value3 ] ] I can't generate the output without knowing what the output should be, and I have neither the time nor inclination to not only learn Lua but also learn Java<->Lua glue just to generate a couple of output values in a Minecraft mod. If you can tell me what I should return in a form I can actually implement, then hey.
  21. You keep saying "table", and I don't know what the fuck that is. Do I return three numbers as separate objects? Do I return one object which is an array of three numbers? Do I have to do some sort of key-value pairing? What? I'm not getting paid to do this, so you're going to have to pick up the slack and make me understand to actually get what you want.
  22. One guy kind of did a bit of that, but it's not complete. Space-ship-something-or-other is his name.
  23. Minecraft modding has some how transcended computer programming into a realm of flying chickens and turds that recite Klingon poetry. And I can't even fathom how it happened.
  24. Yes, it's a sad state of affairs: Recent events have pissed me off so much, and just proven all over again that the social clique triumphs over all, including fairness and reason, and that the average user/consumer of anything has as much awareness and willpower as a noodle soaked three days. It's put me off of Minecraft all over again, and this mod is the only thing keeping me going right now. For a little while, it looked like things might start to finally turn around, move in a positive direction...and then the hordes start popping out of the woodwork, swarming all over everything, whitewashing the entire thing into some sort of pleasant comedic routine, a shaken finger with "naughty, naughty", and a little sandbox all of his own. Even a guy I actually used to defend, I now find out has been doing the same bullshit the whole time and I didn't even know it. I essentially lied for him out of pure ignorance. I feel disgusted.
×
×
  • Create New...