Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Obfuscating classes  (Read 2053 times)
0 Members and 1 Guest are viewing this topic.
Offline ItzKR15

Senior Newbie


Medals: 1



« Posted 2013-06-13 19:34:39 »

Hey, I was just wandering if there was a way of obfuscating classes, because In this game i'm making I don't want modders finding out how to, well mod the classes.

Thanks  Wink

Just keep coding, Just keep coding!

http://internetometer.com/image/39407.png Please Give me Internets!
Offline Sammidysam
« Reply #1 - Posted 2013-06-13 19:44:02 »

You shouldn't want to do that.  It's evil.

If you still want to, this looks helpful.

Some other items on JGO answering your question, or at least, looking for answers:
    http://www.java-gaming.org/topics/obfuscating-code-and-references-to-java-standard-apis/29868/view.html
    http://www.java-gaming.org/topics/proguard-gui-don-t-obfuscate-1-class/25632/view.html

By the way, what makes you want modders to not be able to mod?  Likely your game won't get popular enough to be modded, anyway, so why bother?  That was not meant as an insult; I'm sure the majority of people's games here will never get modded.
Offline Agro
« Reply #2 - Posted 2013-06-13 20:06:16 »

Obfuscating isn't a bad thing at all, its just a way to keep your source closed.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline R.D.

Senior Devvie


Medals: 2
Projects: 1


"For the last time, Hats ARE Awesome"


« Reply #3 - Posted 2013-06-13 22:26:59 »

No, it just makes it harder to read. I good reverse engineering guy does not stop because of the classes and types named with just a letter Cheesy Just look at Minecraft. it is obfuscated yet there are mods.
Offline HeroesGraveDev

JGO Kernel


Medals: 310
Projects: 11
Exp: 3 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #4 - Posted 2013-06-14 03:46:56 »

That is pointless.

Scenario 1: (Most likely) No-one will care about your game and so will not even think to mod it.

Scenario 2: (unlikely) The game will get really popular and so people will get around obfuscation anyway.

Either way, you waste you time.

Offline GabrielBailey74
« Reply #5 - Posted 2013-06-14 03:55:30 »

No-one will care about your game.

Ouch bro.

No, it just makes it harder to read.

----> Mission complete.

Offline HeroesGraveDev

JGO Kernel


Medals: 310
Projects: 11
Exp: 3 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #6 - Posted 2013-06-14 04:03:03 »


The sad truth of starting out as a game developer.
(side note: "No-one" was meant more as "almost no-one")

And in most cases, no-one will care enough to mod your game.

Offline Agro
« Reply #7 - Posted 2013-06-14 04:44:30 »

Its not really about caring to mod it. Its about wanting to mod it Cheesy

Offline GabrielBailey74
« Reply #8 - Posted 2013-06-14 05:41:59 »

Its not really about caring to mod it. Its about wanting to mod it Cheesy
I concur.

Offline Nate

« JGO Bitwise Duke »


Medals: 158
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #9 - Posted 2013-06-14 20:50:38 »

It can make a big difference trying to decompile code obfuscated vs unobfuscated. It is still possible, just harder. It also makes the JARs smaller. There is nothing wrong with obfuscation.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline R.D.

Senior Devvie


Medals: 2
Projects: 1


"For the last time, Hats ARE Awesome"


« Reply #10 - Posted 2013-06-15 12:15:43 »

It can make a big difference trying to decompile code obfuscated vs unobfuscated. It is still possible, just harder. It also makes the JARs smaller. There is nothing wrong with obfuscation.

Yepp that's the good thing (Although the most size from your game will be the assets not the code). Tools like ProGuard also optimize stuff afair.
Offline Nate

« JGO Bitwise Duke »


Medals: 158
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #11 - Posted 2013-06-15 13:03:23 »

True, though it depends on the game (eg, 4k games). An obfuscater can rip out all the stuff you don't use, which might be a decent chunk if only using small portions of relatively large libraries. FWIW, Spine is ~43k LOC on it's own, not including dependencies. The JAR including that and all the dependencies (libgdx, LWJGL) is 2.2MB, without natives. Kind of scary how much effort goes into something so small. Smiley Unobfuscated it's 3.9MB, so a 44% reduction. The JGLFW version of Spine is < 1.5MB obfuscated, which goes to show LWJGL could be a bit smaller.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (50 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (57 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!