"Very Difficult Choice" Mod, irc channel: irc.quakenet.org/vdc
-
- Posts:39
- Joined:Sat Sep 15, 2012 4:11 pm
-
- Posts:39
- Joined:Sat Sep 15, 2012 4:11 pm
Source code is something that it is compiled later. No, we work with asm code of the game and change it where possible by changing respective bytes of the exe.uff.. so you change the sourcecode directly? wow, thats .. quite some difficult coding magic! would be great to get the original have there been attempts to get access to the original source code and make files etc?
-
- Posts:39
- Joined:Sat Sep 15, 2012 4:11 pm
Ohh right sorry, thats what I ment. dont tell anyone!
Well, if you change the ASM code directly, can you change jump positions in the code or does that break everything? So I am basically asking if you can add functionality to the code or are you restricted to replace existing code with the same length of replacement code?
If you cant change the length of the asm commandchains, the easiest would be to replace constants with other constants of the same data type. More complex would it be to replace actual algorithm fragments with different ones of the same length in asm-commands..
I dont really know how asm-jumps (function calls) work.. do they point to the absolute adresses of the goal?
Well, if you change the ASM code directly, can you change jump positions in the code or does that break everything? So I am basically asking if you can add functionality to the code or are you restricted to replace existing code with the same length of replacement code?
If you cant change the length of the asm commandchains, the easiest would be to replace constants with other constants of the same data type. More complex would it be to replace actual algorithm fragments with different ones of the same length in asm-commands..
I dont really know how asm-jumps (function calls) work.. do they point to the absolute adresses of the goal?
Well, in fact you compile machine code from source code, not reverse, so no need to excuses. Understand it right, Overlord2 have no idea about it at all, guy who do it for him have, its his job. And job of Overlord2 mainly is in borrowing or direct steal of other's ideas, plus adding some own random ones just to distract, and also in creating of incomprehensibly and erroneous data files. And in calling it "My Mode".
Either. Jumps can be absolute segment:offset, offset relative to segment and offset relative to current position. AFAIR, calls are a bit more restricted, there can't be offset relative to current position. It is quite possible to add more code and calls to it in RAM but it is hard to apply this modifications to EXE file. So most popular method of modifying DOS EXE is replacing of existing code with new one.I dont really know how asm-jumps (function calls) work.. do they point to the absolute adresses of the goal?
It is quite possible to use machine code as source and "compile" it to script. And I'm talking not about disassembling.Well, in fact you compile machine code from source code, not reverse, so no need to excuses.
The most stupid Diablo 2 mod I've played was created by tech guy, coder. Someone can be good coder but awful game designer and vice versa. Ability to do smart compiling of existing ideas/code is more important for creating good mod/game than ability to implement some raw idea in code.Understand it right, Overlord2 have no idea about it at all, guy who do it for him have, its his job. And job of Overlord2 mainly is in borrowing or direct steal of other's ideas, plus adding some own random ones just to distract, and also in creating of incomprehensibly and erroneous data files. And in calling it "My Mode".
First. Java isnt our case now, obviously.
Second. Where did i sayd what this is bad? Its quite usual and normal process. And of course ability of smart compiling is very important, fully agree. Till recent time there was 2 problems - but now someone who can work with code appeared, so now is left only one of them, you sayd the most important.
Second. Where did i sayd what this is bad? Its quite usual and normal process. And of course ability of smart compiling is very important, fully agree. Till recent time there was 2 problems - but now someone who can work with code appeared, so now is left only one of them, you sayd the most important.
@Semmel
You can add jumps to perform new code in other place of the exe. But it is rather complicated procedure. Also replacing existing code with the same length of replacement code is possible. Anyway, why are you asking?
@Darza
Generally, what the hell do you want, darza?
You can add jumps to perform new code in other place of the exe. But it is rather complicated procedure. Also replacing existing code with the same length of replacement code is possible. Anyway, why are you asking?
@Darza
Indeed. But Semmel was talking about changing source code, not the machine code, so I corrected him.Well, in fact you compile machine code from source code, not reverse, so no need to excuses.
This is a lie, I understand how it works, just don't know the machine code. Who gave you right to spread lies?....Overlord2 have no idea about it at all
You can't borrow or steal ideas, this is nonsense. Ideas cannot belong to anyone.And job of Overlord2 mainly is in borrowing or direct steal of other's ideas
Generally, what the hell do you want, darza?
-
- Posts:39
- Joined:Sat Sep 15, 2012 4:11 pm
Well, I was asking because I coded c, c++, java and I inclined to offer you my help. But I have never tried to do ASM code directly. I know in principle how it works, but in reality I have no idea. So I wanted to know how exactly you do your modding. Unfortunately, its out of my comfort zone..You can add jumps to perform new code in other place of the exe. But it is rather complicated procedure. Also replacing existing code with the same length of replacement code is possible. Anyway, why are you asking?
And yes, i said "source code" but i ment "mashine code". So I used the wrong word because I was in a hurry when I was writing and my brain mixed up. So you were absolutely right to correct me
Return to “Game Modifications”
Who is online
Users browsing this forum: No registered users and 11 guests