• What are you working on? v16
    5,004 replies, posted
[QUOTE=raBBish;28792630]I'd move the entity type outside the table, since it's required and it being in the table implies optionality. [lua]Entity 'Player' { pos = Vector( 216, 457 ) }[/lua] Same for LevelData, where I'm guessing the name is also required. And for extra measure, use a Vector class instead of separate numbers. Sorry, I always find myself sperging all over Lua wrappers for some reason. I'm obsessed with clean interfaces :eng99:[/QUOTE] I don't think putting the name before the arguments is proper Lua syntax... And I tried to use Vector classes but then I got confused trying to read Lua table values from Lua tables from other Lua tables and gave up :v:
Making a tunnel generator that is responsive to sound input or track... (group project for university) - going on to add a "spaceship" that will fly down the track and dodge objects that will pulse / spin etc [url]http://www.youtube.com/watch?v=EB0zUgiKt2Q&feature=player_embedded[/url] It's using openGL at the moment, written in Java
What does DevBug have against me :v: I just said I wouldn't describe Java as having [B]unparalleled[/B] power and flexibility and whatnot. I've worked with Java. It's easy. I just wish it had multiple inheritance :frown:
[QUOTE=Dlaor-guy;28799468]I don't think putting the name before the arguments is proper Lua syntax... And I tried to use Vector classes but then I got confused trying to read Lua table values from Lua tables from other Lua tables and gave up :v:[/QUOTE] It is valid syntax, but it might not be obvious what it does. First, Entity is called with "Player", then the return value of that is called with the table. Example: [lua] function Entity(name) return function(parameters) AddEntity(name, parameters.pos.x, parameters.pos.y) end end [/lua] [editline]25th March 2011[/editline] [QUOTE=esalaka;28799577]What does DevBug have against me :v: I just said I wouldn't describe Java as having [B]unparalleled[/B] power and flexibility and whatnot. I've worked with Java. It's easy. I just wish it had multiple inheritance :frown:[/QUOTE] Multiple inheritance sucks badly. Learn to use interfaces and composition properly and you'll hardly be missing MI anymore (there are some edge cases that Java won't cover, though).
[QUOTE=jA_cOp;28799790]It is valid syntax, but it might not be obvious what it does. First, Entity is called with "Player", then the return value of that is called with the table. Example: [lua] function Entity(name) return function(parameters) AddEntity(name, parameters.pos.x, parameters.pos.y) end end [/lua][/QUOTE] That's interesting... I should read up on more hidden features of Lua. Also, anyone remember this? [img]http://i33.tinypic.com/2d7wyyr.png[/img] Someone should make a new version with more people on it :v:
[QUOTE=TerabyteS;28798463]How is a generic falling sand game implemented? Is it wiser to use a 2D int array with an element for each pixel or to make an object for each "point" without having an array that necessarily has to contain an element for each point?[/QUOTE] [url]http://gamedev.stackexchange.com/questions/7078/powder-games-how-do-they-work[/url]
Ok, now that I've finished refactoring and documentation, how exactly do I publish a library under LGPL v3 when the original is LGPL v2.1 or later? Do I just replace v2.1 with v3 and add my name and this year to the list of copyright holders?
[QUOTE=DevBug;28789556]Why do you people hate Java so much? A lot of you use C# which sits on top of the CLR and you don't complain about it's performance and how it's 'bloated'. I think it has more to do with someone's success using Java than old suspicions. Edit: Thanks Dlaor for [URL="http://www.facepunch.com/threads/1062318-What-are-you-working-on-v16?p=28581077&viewfull=1#post28581077"]this[/URL], it proves that esa is even more of a dumb ass.[/QUOTE] By C# don't you mean the .Net Framework as it is all compiled into MSIL in the end. Now both .Net and Java are interpreted but I find the .Net languages clearly superior because unlike Java .Net does not run in a Virtual Machine and it still manages to be cross platform with the help of Mono.
[QUOTE=Tamschi;28800463]Ok, now that I've finished refactoring and documentation, how exactly do I publish a library under LGPL v3 when the original is LGPL v2.1 or later? Do I just replace v2.1 with v3 and add my name and this year to the list of copyright holders?[/QUOTE] That, and you provide a copy of the newer license with that library. I think LGPL v2.1 can be relicensed to v3
A: [img]http://img855.imageshack.us/img855/1664/gaussa.png[/img] B: [img]http://img135.imageshack.us/img135/5136/gaussb.png[/img] A or B: [img]http://img402.imageshack.us/img402/4782/gaussaorb.png[/img] I suppose it kind of works. except for the bugs If you're wondering what "it" is, it's an attempt at representing sets of values as gaussian functions and doing some probability stuff or logic or set operations with them. I don't quite know myself.
Would ask this in the phone thread but no one reads it, so; Is there a way to see the underlying xml layout or possibly source code of android apps? Just got an android phone, and I see all these fancy effects and I'd like to replicate them in my app.
[QUOTE=RyanDv3;28801059]Would ask this in the phone thread but no one reads it, so; Is there a way to see the underlying xml layout or possibly source code of android apps? Just got an android phone, and I see all these fancy effects and I'd like to replicate them in my app.[/QUOTE] The Java is compiled into Dalvik bytecode, and the XML is also compiled (I'm pretty sure). When put on the phone, the bytecode may have been optimized, further obscuring it. In other words, no, you can't see the source or the XML unless the project is open-source.
huh well that sucks
[QUOTE=jA_cOp;28801125]The Java is compiled into Dalvik bytecode, and the XML is also compiled (I'm pretty sure). When put on the phone, the bytecode may have been optimized, further obscuring it. In other words, no, you can't see the source or the XML unless the project is open-source.[/QUOTE] [url=http://dedexer.sourceforge.net/]You're wrong.[/url] A .apk is just a modified .jar, and a .dex is the Dalvik bytecode. Dedexer decompiles .dex files. Good day.
I solved my "models weren't loading properly" issue; I later discovered that this was because I was applying the camera transform matrix to the whole model instead of each individual mesh within the model. If you export an FBX it includes all the sub-meshes but if you export a 3DS it exports as one big mesh (which is why the 3DS worked but the FBX didn't) I have literally no idea how matrices work but I've managed to re-write my draw code and have a transform for each mesh within the model. I feel like a super-mathematician. Now to read how matrices work so this doesn't happen again.
[QUOTE=geel9;28801638][url=http://dedexer.sourceforge.net/]You're wrong.[/url] A .apk is just a modified .jar, and a .dex is the Dalvik bytecode. Dedexer decompiles .dex files. Good day.[/QUOTE] ... dedexer [I]disassembles[/I] .dex files. :sigh:
[QUOTE=anthonywolfe;28800564]By C# don't you mean the .Net Framework as it is all compiled into MSIL in the end. Now both .Net and Java are interpreted but I find the .Net languages clearly superior because unlike Java .Net does not run in a Virtual Machine and it still manages to be cross platform with the help of Mono.[/QUOTE] .NET/Java are not interpreted unless there is no JIT for the architecture you are running it on. Also the JVM is not really that much different than the CLR. My biggest problem with Java is its OOP and forced coding style.
[QUOTE=geel9;28801638][url=http://dedexer.sourceforge.net/]You're wrong.[/url] A .apk is just a modified .jar, and a .dex is the Dalvik bytecode. Dedexer decompiles .dex files. Good day.[/QUOTE] That's like saying OllyDbg is a program that can decompile C++ programs. But I bet you were so happy being able to say someone else is wrong. With that "Good day." shit and everything... [editline]25th March 2011[/editline] Look, pure Java: [code].method public calc1(I)I packed-switch v2,0 ps418_422 ; case 0 ps418_426 ; case 1 ps418_42a ; case 2 default: ps418_default ps418_default: const/4 v0,15 l420: return v0 ps418_422: const/4 v0,2 goto l420 ps418_426: const/4 v0,5 goto l420 ps418_42a: const/4 v0,6 goto l420 nop .end method[/code]
My whiteboard just came in the post. After a bit of wrestling with an Allen Key and some choice words I have managed to take off the paper clipper and put the pen holder on the side so it is now horizontal. Productivity +10%.
[QUOTE=ThePuska;28800721]A: [img_thumb]http://img855.imageshack.us/img855/1664/gaussa.png[/img_thumb] B: [img_thumb]http://img135.imageshack.us/img135/5136/gaussb.png[/img_thumb] A or B: [img_thumb]http://img402.imageshack.us/img402/4782/gaussaorb.png[/img_thumb] I suppose it kind of works. except for the bugs If you're wondering what "it" is, it's an attempt at representing sets of values as gaussian functions and doing some probability stuff or logic or set operations with them. I don't quite know myself.[/QUOTE] I noticed that my math for multiplying two gaussian functions was wrong, but now it's fixed Using the same sets, A and B: [img]http://img827.imageshack.us/img827/1166/gaussaandb.png[/img] yeah there's a local maximum at x=-1.5, it's just [i]very small[/i]
[QUOTE=geel9;28801638][url=http://dedexer.sourceforge.net/]You're wrong.[/url] A .apk is just a modified .jar, and a .dex is the Dalvik bytecode. Dedexer decompiles .dex files. Good day.[/QUOTE] People really need to make sure they know what they're talking about when they do this. Otherwise, you just end up looking like a tool.
[QUOTE=ThePuska;28802691]I noticed that my math for multiplying two gaussian functions was wrong, but now it's fixed Using the same sets, A and B: [img_thumb]http://img827.imageshack.us/img827/1166/gaussaandb.png[/img_thumb] I'm quite sure that there should be a local maximum at x=-1.5. It doesn't look like there is, but I'm quite sure that the sum of two gaussian functions always gets you two maxima, unless the functions were offset by exactly the same amount. I'll have to check that part of my math too[/QUOTE] Please tell me what that is. I love your math stuff and hate when I don't understand what's going on.
[QUOTE=gparent;28802700]People really need to make sure they know what they're talking about when they do this. Otherwise, you just end up looking like a tool.[/QUOTE] [url=http://code.google.com/p/dex2jar/]Have fun.[/url] In any event, there IS a method to do it. Otherwise, Hexxeh wouldn't have been able to break Overv's protection. People really need to make sure they know what they're talking about when they do this. Otherwise, you just end up looking like a tool. [editline]25th March 2011[/editline] Oh, and in case you're going to try and say "but .class files can't be read herp derp" [url=http://java.decompiler.free.fr/?q=jdgui]Shut the fuck up.[/url] [highlight](User was banned for this post ("Flaming" - Overv))[/highlight]
[QUOTE=geel9;28802771][url=http://code.google.com/p/dex2jar/]Have fun.[/url] In any event, there IS a method to do it. Otherwise, Hexxeh wouldn't have been able to break Overv's protection. People really need to make sure they know what they're talking about when they do this. Otherwise, you just end up looking like a tool.[/QUOTE] Please just stop talking. It's painful to read.
Well for the physics puzzle game, I teamed up with murkrow to create downloadable levels. [img_thumb]http://stabyourself.net/screenshot.png[/img_thumb] More programmer art! Check out the sweet animation, though. [url]http://stabyourself.net/physicsR12.love[/url] It gets the level index from the server and when you click one it gets the appropriate level too (They mostly look the same; duplicated so we get to page 2). Not much of a game going on yet. Click and drag to move stuff around, press mouse2 to spawn the balls.
[QUOTE=jA_cOp;28802797]Please just stop talking. It's painful to read.[/QUOTE] [url=http://www.facepunch.com/threads/1055407-Facepunch-for-Android-App?p=27786086&viewfull=1#post27786086]How wrong can you get?[/url] Clearly, Overv gave Hexxeh his source. Hexxeh couldn't possibly have...DECOMPILED it somehow! [editline]25th March 2011[/editline] Also, you're wrong about the XML viewing as well. You CAN view an application's XML. It's not compiled. Just open the .apk with winrar, browse to "res/layout" and enjoy.
[QUOTE=geel9;28802897][url=http://www.facepunch.com/threads/1055407-Facepunch-for-Android-App?p=27786086&viewfull=1#post27786086]How wrong can you get?[/url] Clearly, Overv gave Hexxeh his source. Hexxeh couldn't possibly have...DECOMPILED it somehow! [editline]25th March 2011[/editline] Also, you're wrong about the XML viewing as well. You CAN view an application's XML. It's not compiled. Just open the .apk with winrar, browse to "res/layout" and enjoy.[/QUOTE] But jA_c0p isn't talking about reverse engineering, but the actual source code. It's really sad how you feel the need to belittle others when you're the one who has clearly no clue what they were discussing.
Here you go. I just decompiled my own application. I got the full source. [media]http://gyazo.com/3810d328484b7b71cc6149bc7cd5655c.png[/media] The .class files [media]http://gyazo.com/80aad1c816534c42604a197896ae8dc8.png[/media] The source of a class.
[QUOTE=geel9;28802897] Also, you're wrong about the XML viewing as well. You CAN view an application's XML. It's not compiled. Just open the .apk with winrar, browse to "res/layout" and enjoy.[/QUOTE] Open one of those XML files and look inside. [editline]26th March 2011[/editline] [QUOTE=geel9;28803041]Here you go. I just decompiled my own application. I got the full source. [media]http://gyazo.com/3810d328484b7b71cc6149bc7cd5655c.png[/media] The .class files [media]http://gyazo.com/80aad1c816534c42604a197896ae8dc8.png[/media] The source of a class.[/QUOTE] Try the same with a non-debug version of your application. A disassembler performs disassembly. Disassembly gives you assembly notated code. A decompiler produces guessed source code from disassembled code. None of this produces the original, readable source code, and none of this helps RyanDv3 in the slightest. (And you're still being an asshole for some reason)
I have an apk here that I unpacked, but gedit is saying it can't detect the encoding...
Sorry, you need to Log In to post a reply to this thread.