Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feb 11 2012 - How Do I Changed Object.class?
- [19:45] <ekim350z> anyone here know java by chance? im trying to change some data inside the Object class
- [19:46] == Malqua [~Malqua@184-76-53-235.war.clearwire-wmx.net] has joined #risucraft
- [19:46] <Risugami> what witchcraft is this?
- [19:46] == Windaway has changed nick to Windwaker
- [19:47] <Risugami> you can't just edit Object
- [19:47] == LeonWildhart_ [webchat@208.66.88.197] has joined #risucraft
- [19:47] <Red_M> gonna play SMNC for the first time
- [19:47] <LeonWildhart_> Cant /topic
- [19:47] <AbrarSyed> lol
- [19:48] == Soundmaniac [~Soundmani@e212080.upc-e.chello.nl] has quit [Quit: Leaving]
- [19:48] <AbrarSyed> I don't know anything about reflection, but it might be possible to change the stuff in the Object class using that.
- [19:48] <AbrarSyed> most probably not
- [19:48] <LeonWildhart_> I cant see the rules...
- [19:48] == Risugami [risugami@72.173.8.118] has quit [Read error: Connection reset by peer]
- [19:49] == Risugami [risugami@72.173.8.118] has joined #risucraft
- [19:49] == mode/#risucraft [+o Risugami] by zsh
- [19:49] <ekim350z> Risugami, how do i get to the point of changing it?
- [19:49] <WackoMcGoose> Risugami: I've got an actually SANE question for you. How do I colorshift an INVENTORY block render? Like Block.colorMultiplier, but for RenderInvBlock
- [19:50] <Risugami> try glColor4f
- [19:51] <Ribor> what quality sound can you use for mc?
- [19:51] <immibis> ekim350z: what?
- [19:51] <WackoMcGoose> Risugami: Hex values RGBA I assume?
- [19:51] <immibis> the Object class doesn't store any data
- [19:51] <immibis> well, no data that's useful to you
- [19:51] <Forkk13> Riking, you still trying to get it working?
- [19:51] <fishtaco567> No
- [19:51] <fishtaco567> Floats
- [19:51] <fishtaco567> 0-1
- [19:52] <Risugami> yea... what would you possible need to change in object...
- [19:52] <Risugami> the hashcode?
- [19:52] <ekim350z> immibis, when i print map (Object map) out, i get {money=100}, how do i modify it to be {money=200}
- [19:52] <ekim350z> hashcode yes?
- [19:52] <immibis> no you don't want the hashcode
- [19:53] <immibis> you want to do what? i still don't understand your question
- [19:53] <Risugami> did you ever consider that Object reference might be a class that extends Object?
- [19:54] <AbrarSyed> you want to modify Object? you make a custom class
- [19:54] <ekim350z> I have Object map, when i print out map, i get {money=100}, so how would i modify map to give me {money=10}
- [19:54] <ekim350z> i have to make a custom class and copy it to it?
- [19:54] <AbrarSyed> depends on what is stored in teh map
- [19:54] <Risugami> ?javatut
- [19:54] <crow> Free java tutorials at http://download.oracle.com/javase/tutorial/ http://learn-java-tutorial.com/
- [19:54] == Shadow386 has changed nick to Shadow|Bed
- [19:54] <Samantha> I hope you have a dream about a thousand million curvy, "chocolate" covered kittens happily "drinking" a billion visible, furry cups of tea in a cute lounge of obsidian =D
- [19:54] <immibis> ekim350z: If you don't know java, learn that first
- [19:54] <Risugami> for the love of god start there
- [19:54] <AbrarSyed> it depends whcich class is in there
- [19:55] <AbrarSyed> ekim350z: I invited you to a private chat.
- [19:55] <AbrarSyed> *wich me luck on teaching the ignorant java :P
- [19:55] == armed_troop [~armed_tro@mobile-166-147-118-242.mycingular.net] has joined #risucraft
- [19:55] <ekim350z> its a linkedmaphash
- (And the commentary from #evilmojang after I linked this paste)
- [19:49] <Jokiboy> Lol! How dumb was that guy?
- [19:50] <Jokiboy> One does not simply edit Object class!
- [19:50] <Shadow386> One does not simply override base classes
- [19:50] <clarjon1> One does not simply One does not simply.
- [19:51] <Jokiboy> One does not simply getover 256 terrain indexes.
- [19:51] <Pepper> One does not simply change a packet, change it back, and hope that it'll work
- ===========================================================================================================
- Feb 13 2012 - lol use forge becuz it fasterer
- [15:33] <Shadow386> No, you were pointing out compatibility, mentioning forge being compatible
- [15:33] <nallar> I pointed out using proxy classes, which would help with compatibility
- [15:33] <medsouz> !popcorn
- [15:33] <crow> http://i.imgur.com/2YPvY.gif
- [15:33] <nallar> it also means you can access protected fields/methods without reflection.
- [15:34] <Shadow386> And thus suggesting that we use forge, which we arent going to use
- [15:34] <nallar> no
- [15:34] <nallar> not suggestiing you use forge
- [15:34] <nallar> It would allow forge to work with it, that was JUST AN EXAMPLE.
- [15:34] <nallar> :P
- [15:34] <nallar> I give up, apparently I fail at getting what I mean across.
- [15:34] <Shadow386> I dont see why when we don't care for compatibility
- [15:35] <nallar> improved speed through less reflection, easier to write code through writing as if modifying hte base class.
- [15:36] <Shadow386> Alrighty, you take a look through the code and tell me the easier way we can do that
- [15:36] <nallar> http://pastebin.com/kN8RqMrb
- [15:36] <nallar> formatting is messed up, but that's an example.
- [15:36] <Riking> ?calc 932/147
- [15:36] <crow> Decimal approximation: 6.3401360544217687074829931972789115646258503401360544...
- [15:36] <medsouz> nallar: package wont work
- [15:37] <nallar> Works here.
- [15:37] <medsouz> you cannot import from the default package
- [15:37] <Risugami> need more decimal
- [15:37] <medsouz> when you compile it net.minecraft.src changes to the default package
- [15:37] <Riking> ?calc 95*464 > riking
- [15:37] <nallar> medsouz, compiler won't, but MCP will reobf to, so it doesn't matter.
- [15:37] <Riking> ?calc 95*464
- [15:37] <crow> no results
- [15:37] <Riking> .wa 95*464
- [15:37] <crow> Riking: Exact result: 44080. Number name: 44 thousand and 80
- [15:37] <Riking> GAH
- [15:37] <Riking> .wa approximate 95*464
- [15:37] <crow> Riking: no results
- [15:37] <Miclee> nallar: What are you and Shadow arguing about?
- [15:37] <Riking> >.>
- [15:38] <medsouz> also, proxies make it so conflicts dont crash but also stop the mods that conflict from working together
- [15:38] * Miclee wants the short story.
- [15:38] <medsouz> the one with the proxy takes control
- [15:38] <nallar> medsouz, I guess you're right.
- [15:38] <medsouz> Miclee: nallar says you're doing it wrong. Shadow386 says you're doing it right
- [15:38] <Miclee> We are doing it right.
- [15:38] <Miclee> nallar: What are we doing wrong, from your point of view?
- [15:38] <nallar> I'm only thinking about situations in whcih you can just do modifications to what the super class does, like adding 2 to the return value.
- [15:38] <nallar> actually modifying inner workings doesn't keep compatibility, unless you call the super then fix what it did
- [15:39] <medsouz> I guess by extending if they use different methods it would work
- [15:39] <Miclee> nallar: And fuck compatibility, most things will be incompatible anyways.
- [15:39] <medsouz> but thats about it
- [15:39] <nallar> and that means slow redundancy.
- [15:39] <TLUL> Shockah: So I just fixed some bugs, and now my stupid terrible kludge is working just fine.
- [15:39] <Shockah> lul
- [15:39] <nallar> so I guess my method's only a good idea in specific situations.
- [15:39] == SioxerNic [~chatzilla@0x573b2e4e.hknqu1.dynamic.dsl.tele.dk] has joined #risucraft
- [15:39] <medsouz> theres a reason I dont touch base classses
- [15:40] <medsouz> all of socialminer is through modloader, not base classes touched
- [15:40] <SioxerNic> Hi People, is there anyone who could possibly guide me to a way to implement BioSphere mod to SMP?
- [15:40] <TLUL> But you see my dilemma, right? I only have reflective access and I don't know the class names, so I have no way to get at EntityList or at classes like EntityCreeper
- [15:40] <WackoMcGoose> Yeah, but sometimes there's no way around touching base classes.
- [15:40] == Techie[Away] has changed nick to computertechie
- [15:40] <ashtheking> SioxerNic: ask Risu for permission first. Then look at the code and change worldgen.
- [15:40] <SioxerNic> It would be much appreciated.
- [15:40] <Samantha> wb
- [15:40] <nallar> Also, protip, never ever try to write a mod which needs reflection (any mod...) when the only javadocs you have access to are the java sources and you have no program to generate the javadocs from them.
- [15:40] <nallar> D:
- [15:40] == GUIpsp has changed nick to GUIpsp|away
- [15:40] <SioxerNic> I personally do not have much experience in coding for MineCraft
- [15:40] <WackoMcGoose> "Modern Winter Mode" would've never happened if I didn't turn BlockSnow into a spaghetti bowl of code.
- [15:40] <clone1018> ?lahspeak
- [15:40] <crow> lahwran's risucraft mumble server: host lahwran.net default port (64738)
- [15:41] <Shockah> TLUL, no, i don't see it, because i don't get why you have such a problem with using class names
- [15:41] <TLUL> Because it has to be compatible with multiple versions of Minecraft without altering the wrapper at all.
- [15:41] <medsouz> SioxerNic: ask Risugummibears :P
- [15:41] <WackoMcGoose> TLUL: ...........................
- [15:41] <Shockah> TLUL, lazy much?
- [15:41] <TLUL> Yes.
- [15:42] <TLUL> I take anywhere from a week to three months to update my mods.
- [15:42] <TLUL> Ergo, this is easier.
- [15:42] <SioxerNic> As I heard he has no plans to do an smp version of it?
- [15:42] <TLUL> Or at least, it was until I needed to identify Entity types
- [15:42] <Risugami> doesn't javassist help with that?
- [15:42] <Shockah> but you're spending much more time right now on doing that with reflection than you would by updating it like normal
- [15:42] <WackoMcGoose> Then wait for Mojang Time to catch up enough for the mod API to come out. Jeb said mod installs would be more persistent then.
- [15:42] <medsouz> actually since we're on the topic of biospheres, Risugami you should add a feature to modloader that allows us to add to the terrain gen list
- [15:42] <medsouz> unless that already exists
- [15:42] <medsouz> and you should also make biosphers on that list
- [15:42] <Shocky> RSS: 3m 34s ago | carnalizer: Design 101: If people read from left to right, put the important stuff on the left. Profile, trends et al is secondary function. #twitter | http://bit.ly/zhVkbs
- [15:42] <Risugami> like adding a new pass?
- ===========================================================================================================
- Ran-dumb quotes:
- [20:14] <InsanityBringer> why do you have a medic zapping your penis with a medigun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement