Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → Patch for JK.exe::: No Thing Limit!
12345678910
Patch for JK.exe::: No Thing Limit!
2004-12-11, 3:06 PM #121
Now if only I still had JK...
Hazard a company one process.
2004-12-11, 3:53 PM #122
Don't you have to click the little "I agree" button when you install a game? Thats the EULA if I remember correctly. Course, its been a while since I've installed anything...
Life is beautiful.
2004-12-11, 4:53 PM #123
It's also hardly a binding contract Rogue Leader. They could throw "and by clicking yes you give us right of attorney" into the installation EULA, or the txt file EULA somewhere on the CD and it wouldn't mean jack-diddley.

Also, big companies don't necessarily use employees to search the internet for "bad" stuff relating to their products. Software that crawls through the internet (spiders, I believe is the common name for them) check for key phrases and key words and take note of anything that sets off its alarms.

Hell Raiser, is your friend willing to see if they can expand the visible adjoin limit, or surface per mech limits? Also you mentioned they thought they may be able to forward JK's rendering to a different engine; this would open up many doors.

QM
2004-12-11, 5:57 PM #124
Forwarding rendering wouldn't require any modification of the executable, in theory. All that would be needed would be several DLLs with the same neames as the DirectX DLLs that JK uses. These DLLs would have the same function calls as the DirectX DLLs, but would take a different action (ie call the OpenGL DLLs).

2004-12-11, 6:05 PM #125
That's what is done for the mousewheel thing my same friend whipped up. :)
-Hell Raiser
2004-12-11, 9:34 PM #126
Okay; if LEC prohibited reverse-enginieering to protect their coding secrets, what good would it do now? Games light-years beyond JK have become standard these days and I do not believe that ANYthing gleaned from JK's programming could be efefctively used in a new game (a mod for JK like TDiR is another story, as much could be gleaned for that purpose) with any real degree of success.

Also, since this is just a patch, would LucasArts even bat an eyelash? I doubt it. It'd be much like using Action Replay or GameShark codes on a console game system. Once you shut down the game, the .EXE file would revert to its normal state and would play EXACTLY as normal the next time if you didn't rerun the patch.

There is, however, one roadblock: the "do not disassemble/recompile/reverse engineer" thing in the licensing agreement. I can't name any games where a hacker has done this before, as I don't keep track of that sort of thing, but I don't really think it would be an issue, especially since JK is so old. Were it not for patches, mods, TCs, etc., people would have stopped even installing, much less playing, JK as soon as MotS and JO were released. Things like this enhance the gaming community and breathe new life into quasi-dead games.

The main issue here is not whether it's legal; as stated before, you signed no contract and there was no witness even if you did. And the issue isn't whether or not it breaks the EULA: the patch doesn't, but the method does. The main issue is this: would LEC even care? I doubt it, but I could be wrong.

Before ANYone starts calling me a supporter of illegal activites, read the post carefully. Everything I said is CLEARLY labelled as opinion and should be taken with a grain of salt, as I am often proven wrong in my views.
I can't work with JED or JKEdit, I can't make skins or 3DOs, and I know zilch about HTML coding and cogging. But I *CAN* build a quality computer for less than what Dell or Gateway charges. That counts for SOMEthing, right? Right?
2004-12-11, 9:35 PM #127
This is a great thread.... it opens oh so many doors of evil. Yay!

The way I see it is that this community is responsible for keeping Jedi Knight alive for this long. Seriously, I doubt as many copies of JK would have sold without a strong editing community like Massassi.... hell, it wouldn't have lasted past '99. With that in mind, LEC is indebted to Massassi. In the past 7 years, I alone have purchased 4 copies of JK... and it's not because I love "Battleground Jedi"... It's because of the countless mods and maps that Massassi has to offer.... I know I'm not the only one.

LEC should be grateful for every breath of life we inject into this elderly game... even if it does come in the form of license agreement breach.

Quote:
Originally posted by Quib Mask
I won't be messing with a patcher that interferes with a simple thing count. We've dealt with it for years, and saying "patched JK.exe required" in your level readme is kinda lame. If it's expanded to up adjoin limits, face limits, etc. I'll patch JK.

Agreed. Whereas this patch is a step in the right direction (in terms of making JK more bearable to editors and comparible to newer engines), this is only a step. When this patch is finished, and it makes JK truly "limitless", it will be well worth the download. Not till then. Sorry, I just hate those damn HOMs!!!

And if you can throw colored lighting, dynamic shadows and an OGG player into the next patch, then we'd be in business!!.... or is it way too early to open those evil doors?
We are the music makers... and we are the dreamers of dreams...
Neurotic||Mobius Grith||The Atrium
2004-12-11, 9:45 PM #128
Those last things you posted are not things you can feasibly do by simply hex-editing the exe.
</sarcasm>
<Anovis> mmmm I wanna lick your wet, Mentis.
__________
2004-12-11, 10:03 PM #129
bah, I was joking.............. or was I? ;)
We are the music makers... and we are the dreamers of dreams...
Neurotic||Mobius Grith||The Atrium
2004-12-12, 2:37 AM #130
Sounds great. I've been waiting for this.

Heres my mirror:
DjDTM's Mirror For JK PATCHER

About that legal thing... If you really are against the whole patch thing, just don't download it, and forget it, so that if the consequences ever do come, you won't have to face them, and you can sit back, laugh, and say I told you so.

Me on the other hand, I am going to download it, and use it, because I'm not a wuss.
2004-12-12, 2:57 AM #131
Quote:
Originally posted by DjDTM
About that legal thing... If you really are against the whole patch thing, just don't download it, and forget it, so that if the consequences ever do come, you won't have to face them, and you can sit back, laugh, and say I told you so.

Me on the other hand, I am going to download it, and use it, because I'm not a wuss.

Hehe, exactly what I thought. One should be wise enough to see that laws and rules are not made to last forever. And JK's license agreement is such a timed out and now completely useless "treaty".
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2004-12-12, 10:21 AM #132
A Debugger of some sort that lets you see what memory address a program crashed at, and showed you the assembly code from there. Then he just hex edited the exe to change the memory offsets (while knowing what it does in assembly code) to make things unlimited (inside the World Things: of the level.jkl) instead of 640.
-Hell Raiser
2004-12-12, 1:37 PM #133
Quote:
Originally posted by TheJkWhoSaysNi
uh where in the EULA does it mention reverse engineering?

closest thing i could find was:

(2) New Levels may not modify any COM, EXE, DLL or other executable files.


LEC probably doesn’t care any more. They can only stand to gain by this. (An old JK editor might want to give JK editing a go again, and goes out and buy the last available copy to replace the one he lost a year ago)
2004-12-12, 6:27 PM #134
yes, damned those binding contracts that you don't read and hit "I agree" on EVERY program you install.

I hate EULAs...to me its as if a developer is creating laws all on their own without federal or state approval.

Btw
Anyone (Hereafter referred to as "User") clicking the "Reply" button at the bottom of the page, collectively signs over their soul to Duo (Hereafter referred to as "Me") and agrees to the following.
2. You may not click View>Source In Opera (or anything else).
3. You may not walk on the sidewalk, or drive in the rain.
4. You may not modify anything for any reason. This includes moving dirty when you walk on it.

Oh and just so most of you know. All games that you "own" are actually just licensed to you. Unlike most other products you never actually own a game.
Just more communist bull from developers.




Oh and about that patcher. KEEP EM COMING! JK in OpenGL or with DirectX9 and Shader support plz!!!! :D
2004-12-12, 7:22 PM #135
I clicked the one on the top
DEFEATED
Holy soap opera Batman. - FGR
DARWIN WILL PREVENT THE DOWNFALL OF OUR RACE. - Rob
Free Jin!
2004-12-12, 7:31 PM #136
Clicked on the top reply button AND used a mouse gesture to view source.

Owned.
Marsz, marsz, Dąbrowski,
Z ziemi włoskiej do Polski,
Za twoim przewodem
Złączym się z narodem.
2004-12-12, 8:04 PM #137
You know, come to think of it, I'm kind of surprised more people aren't making a big deal of this. Sure it got posted on the main page but, this is revolutionary! I mean this really will change JK editing forever... so why aren't at least 12 odd people who edit JK flipping out and shouting for joy. It just seems that this thread was met with a bit of an understatement.

:confused:
My JK Level Design | 2005 JK Hub Level Pack (Plexus) | Massassi Levels
2004-12-12, 8:06 PM #138
Because it's not revolutionary. It could have been done by a 12 year old hacker seven years ago. It's always been illegal, but now that the game is damn near dead, no one seems to care about legal business anymore.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-12-12, 8:14 PM #139
I am guessing that the patch was not done before because it is very hard to look through assembly and no one (until now) thought it was worth the effort.

I am a JK editor, and I *do* think this is very cool. I just don't have time to post how cool it is because I am too busy working on JK stuff. ;)

:)
2004-12-12, 8:47 PM #140
Doing any real coding in assembly is quite hard, hacking stuff away (like limits) isn't too bad. You still have to know assembly of course and be a good programmer. There have been plenty of people in the JK community over the years matching this criterea, however thing limit hasn't been a real problem until the past few years and it's always been illegal. Well, it still is, but it appears no one cares.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2004-12-12, 8:48 PM #141
I'm holding out for a MOTS version ;)
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2004-12-12, 9:33 PM #142
Personally, I do find this really exciting. I just don't feel ONLY the thing limit being lifted is THAT earth-shattering. That being said, a project I am starting will make use of the lifted thing limit.

Emon, this exact method to remove the thing limit WASN'T that easy. Years ago I had tried to simply force a greater number (through hex editing JK.exe) without realizing a buffer overflow was what was causing the fail. Also, stop waving the illegal flag, it's already been argued into the ground that it's NOT illegal, so there shouldn't be any more mention whether it is illegal or not. In other words: you can believe it's illegal, you don't have to tell us that. I'll stop saying it's not illegal if you'll offer me the same courtesy.

I've started work to improve the JK engine, inspired by this patch. I've generated C source code to wrap ddraw.dll (as this is my best guess as to what JK's using to draw on screen) so that it can be rerouted into something like opengl or one of the new directx render methods. I've hit a little snag (which I'll probably get passed once I get a good night's rest) where I can't get my code to compile into a forwarding DLL. I think my install of VC++ got screwed up sometime when I was installing 1 or more other programming environments (probably stupid perl). So here's the source code for a naked ddraw.dll wrapper. If someone can get it to compile (it should compile as ddraw.dll) please leave a post here.

QM

Edit: (in reply to Daft_Vader's post below this one, I hope you see this Daft_Vader =D) a ddraw.ddl wrapper (assuming that IS the part of directx that JK uses to render junk, if I'm wrong I can wrap whatever the right DLL is) would allow call made to directx to be modified or rerouted entirely. Heck, with enough work, JK's rendering could be rerouted into opengl (which is way easier to mod, in my opinion) and would possibly allow some engine upgrades (stuff like bump-mapping, but probably not bump-mapping, likely smaller improvements). The reason I'm posting this is I'm always retarded when it comes to getting stuff to compile. Once I get a program/whatever to start compiling, I can edit it and get stuff done.

Update: Got it compiling in VC++. Included the workspace and project file as well as the original code I posted in a zip inside this zip. A compiled dll is inside too, but it doesn't do anything; putting it in the JK folder results in normal JK operation. Gonna see if I can add some sort of logging output generated by the DLL if it's in use.

Update: The bad news is, if the file is simply named ddraw.dll, JK ignores it and loads the one from windows\system first. The good news is, if you hex edit JK.exe to look for ddrax.dll, and rename my modified ddraw.dll to ddrax.dll it DOES use it... not the way I wanted this to work, but I'm glad I've managed to hijack JK's calls to ddraw.
2004-12-12, 9:42 PM #143
What would be the benefit/advantage to such a program (what exactly does it do)?
My JK Level Design | 2005 JK Hub Level Pack (Plexus) | Massassi Levels
2004-12-12, 9:58 PM #144
Now can editors make a forest of trees in one map?
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2004-12-13, 12:59 AM #145
Lots of trees! Too many and you'll get slowdown, though.

And Quib, I'm glad to see you're gettin into this. :) If you'd like, I'll see if my friend doesn't mind comming out of the shadows to work on more things that can be done to JK.exe. :)
-Hell Raiser
2004-12-13, 2:59 AM #146
Quote:
If you'd like...

Sh'yeah I'd like it! I'd groping around in the dark working on this type of stuff. As long as this barrel of monkeys is open, I'd love to see JK expanded as much as possible before all the monkeys die. Ahem... sorry, best metaphor I could come up with at this time of night. Hope to hear from you soon Hell Raiser, and your friend really has done something great for the JK community (well, and you seeing as you sorta showed us it).

QM

P.S. - I'm interested in what your friend did to your mousewheel for you (as mentioned in a previous post); a DirectInput wrapper affecting the mousewheel or something?
2004-12-13, 3:17 AM #147
No prob, I think he's as excited as we are. :)

http://www.hellraiser64.com/Files/wheelthingy.zip if you wanna have a looksie.
-Hell Raiser
2004-12-13, 1:54 PM #148
:eek:

Quib Mask, I sent you an e-mail.
Jedi Knight Enhanced
Freelance Illustrator
2004-12-13, 2:10 PM #149
Shouldn't the first major improvement to the jk engine be stretchy surfaces? Then perhaps full dynamic lighting?
Why are girls in german "its"? -Wolfgang
Cause' the german god said so. - Fritz
2004-12-13, 2:21 PM #150
Quote:
Originally posted by Vaporlinx
Shouldn't the first major improvement to the jk engine be stretchy surfaces? Then perhaps full dynamic lighting?

If Lucasarts wasn't a corporate whore then we could do that, because they would have released the source.

But they are, and they haven't. I like the idea though, kind of like, what is it, Tenbrae Quake or whatever?
2004-12-13, 2:37 PM #151
get a whole bunch of people to bombard lec with emails till they say something. Ask them to reliece it. after all nothing can live without a heart, play to their weaknesses and so on and so fourth. O and it would proble be a bit better if you could chose between opengl rendering and d3d, there are many different computers in this world that tend to have a preference towards one or the other. (mine hates opengl)
Why are girls in german "its"? -Wolfgang
Cause' the german god said so. - Fritz
2004-12-13, 2:44 PM #152
[dusts off his massassi account]

Kudos to you Hell Raiser (and your friend). Good to see JK is still being tweaked.

And thank you Freelancer for making me have to wade through a long arse thread of whining. Blah. :p
Lyrics are highly overrated.
2004-12-13, 4:15 PM #153
Quote:
Quib Mask, I sent you an e-mail.
I'm afraid I didn't receive it Shred. Try sending one to my Massassi forum name, except remove the space between the 2 words, at aol dot com. The only thing at the inbox for the e-mail address I have in my profile here was a bunch of prescription medication spam (whatever happened to porn spam? does anyone still get that?).

QM
2004-12-13, 6:25 PM #154
Odd, ok I sent it to your other account.
Jedi Knight Enhanced
Freelance Illustrator
2004-12-13, 6:26 PM #155
Here's another limit that isn't often noticed, but my FL mod is in DESPERATE need of breaking (mots of course)
The cog variable limit. I don't know what the exact number is, but eventually, adding new variables doesn't actually do anything. The cog just messes up its assignments.

[edit] well I just tried to hit the limit and I'm past the previous limit I had, so I don't know if it was just a variable name messing it up. If you can find a limit in the hex editor please remove it, but I'm starting to wonder if there is one.[/edit]
Sam: "Sir we can't call it 'The Enterprise'"
Jack: "Why not!"
2004-12-13, 6:53 PM #156
My Evil Experiments, Conniving Concoctions, and Devious Discoveries thus far:

1,600 Stormies + Kyle + a Conc Rifle = Mass Devastation!!! :D


Before the Storm(ie):
[http://img.photobucket.com/albums/v52/RossD/small_1.jpg]


War is Declared:
[http://img.photobucket.com/albums/v52/RossD/small_2.jpg]


Deep in the Heart of Battle:
[http://img.photobucket.com/albums/v52/RossD/small_3.jpg]


Futile Resistance:
[http://img.photobucket.com/albums/v52/RossD/small_4.jpg]


Mass Slaughter:
[http://img.photobucket.com/albums/v52/RossD/small_5.jpg]


More Carnage:
[http://img.photobucket.com/albums/v52/RossD/small_6.jpg]


The Aftermath:
[http://img.photobucket.com/albums/v52/RossD/small_7.jpg]


Yeah, so the patch works. 1,603 things on thes screen at the same tiem though cause some serious lag. The game was very stuttery for a while. However, even if 1,600 troops were present, the game would only grind to a halt if you were viewing that many (or large numbers) all at once. In small pockets, the framerate was quite managable. So this means this feature should be handy for editors so long as they group the enemies and items apart from each other in clumps, not in one large mass (which of course every sensible editor would do, ;) ).

JED froze up on me a couple of time though while I was adding the units. Quite a pain. I'm not sure if there's anyway around this, except for plenty of layers. I have a 700Mghz Pentium III with 384 MBs of RAM and a 64 MB Nvidia Ge-Force 4 video card.
My JK Level Design | 2005 JK Hub Level Pack (Plexus) | Massassi Levels
2004-12-13, 7:05 PM #157
Hehe, looks like fun.
The Gas Station
2004-12-13, 7:17 PM #158
I absolutelly love you Daft. LOVE.

I'm so tempted to give that SotD... Post it in the showcase forums, but throw in some friendlies for some all out carnage, and maybe some good looking archi. Give me a war.

JediKirby
ᵗʰᵉᵇˢᵍ๒ᵍᵐᵃᶥᶫ∙ᶜᵒᵐ
ᴸᶥᵛᵉ ᴼᵑ ᴬᵈᵃᵐ
2004-12-13, 7:32 PM #159
Quid: DDraw is Direct Draw, used for 2D stuff, perhaps the menu interface. I think you need to try D3D*.DLL

2004-12-13, 8:51 PM #160
Daft, can you supply a copy of this mass carnage thingie of yours? I would love to see if my comp can handle 1600 objects at once (if it can, I would sooooo try my hardest to make some levels for JK that used the patch). Again, I only want this for testing purposes (and because I'm a slaughter freak).
I can't work with JED or JKEdit, I can't make skins or 3DOs, and I know zilch about HTML coding and cogging. But I *CAN* build a quality computer for less than what Dell or Gateway charges. That counts for SOMEthing, right? Right?
12345678910

↑ Up to the top!