Assistance with basic coding?
Assistance with basic coding?
So, I'm trying to merge the Deus Ex Enhanced UI mod with the latest version of Shifter, but I've come across a problem; I have no idea what I'm doing. I managed to decompile the DeusEx.u files for both, and I've moved all the .uc files regarding the UI, HUD and such from Enhanced to the Shifter files, with no intention of it actually working, but I don't know how to recompile them back into a .u file. A few questions on this;
First, how do I recompile everything?
Second, since I know it can't be this easy, what else will I need to do?
Third, would anyone be interested in this?
Thanks!
~Dinjoralo
First, how do I recompile everything?
Second, since I know it can't be this easy, what else will I need to do?
Third, would anyone be interested in this?
Thanks!
~Dinjoralo
-
- Illuminati
- Posts: 2284
- Joined: Thu Mar 08, 2012 3:21 am
Re: Assistance with basic coding?
1. move all DeusEx.u files you have in your Deus Ex directory out of the directory. I'm guessing you have 2: 1 in DeusEx/System the other in DeusEx/Shifter/System.
2. Bring up the command prompt and type "cd" then the path to your DeusEx\System folder then press enter. Example: "cd C:\DeusEx\System" (without quotes)
3. Type "ucc make" (without quotes).
You'll probably be unsuccessful.
2. Bring up the command prompt and type "cd" then the path to your DeusEx\System folder then press enter. Example: "cd C:\DeusEx\System" (without quotes)
3. Type "ucc make" (without quotes).
You'll probably be unsuccessful.
Re: Assistance with basic coding?
I know this is going to make you lose your faith in humanity, but what command prompt are you talking about?
You think I didn't know that?Cybernetic pig wrote:You'll probably be unsuccessful.
-
- Illuminati
- Posts: 2284
- Joined: Thu Mar 08, 2012 3:21 am
Re: Assistance with basic coding?
cmd.exe
Actually your second sentence annoyed me more, and my faith in humanity remains unaffected. I never had much faith to begin with so it'll take something monumental to lower it furtherDinjoralo wrote:I know this is going to make you lose your faith in humanity
Re: Assistance with basic coding?
Oh.Cybernetic pig wrote: Actually your second sentence annoyed me more
Sorry. :<
The command prompt's saying that it can't find any files matching "..\Core\Classes\*.uc". The folder's in there, I don't know what's going on.
-
- Illuminati
- Posts: 2284
- Joined: Thu Mar 08, 2012 3:21 am
Re: Assistance with basic coding?
Using the command prompt cd command you have to navigate to the location of ucc.exe, should be in DeusEx\System. Your confusion may be my fault, my mad.
Re: Assistance with basic coding?
That's where I had it set, in the system folder, and UCC.exe is in there. Bah, I'll muck around with it tomorrow.
- bjorn98009_91
- Silhouette
- Posts: 688
- Joined: Thu May 08, 2008 8:17 am
- Location: Hufvudstaden, Sweden
- Contact:
Re: Assistance with basic coding?
You should have a folder in your main Deus Ex root folder called "DeusEx" and in that folder have a folder called Classes. It has all the .UC files that's going to be compiled into DeusEx.u.
Open up a command prompt in your System folder, easiest way to do this is to Shift-Right click on an empty area in that folder and select "Open command window here".
Then type "del deusex.u" to delete the DeusEx.u file that's in your System folder, you have to delete it in order to compile a new one. If you know you have other DeusEx.u files in other folders that your game uses like "\Shifter" or HDTP those DeusEx.u files needs to go as well, OR you need to remove those folders from the Paths variables in your DeusEx.ini.
Then in the command prompt, type "ucc make".
Open up a command prompt in your System folder, easiest way to do this is to Shift-Right click on an empty area in that folder and select "Open command window here".
Then type "del deusex.u" to delete the DeusEx.u file that's in your System folder, you have to delete it in order to compile a new one. If you know you have other DeusEx.u files in other folders that your game uses like "\Shifter" or HDTP those DeusEx.u files needs to go as well, OR you need to remove those folders from the Paths variables in your DeusEx.ini.
Then in the command prompt, type "ucc make".
Producer and Quality Assurance Manager for Deus Ex: Revision.
Re: Assistance with basic coding?
Thank you, Bjorn. Moving all the .u files out and putting the file with the classes in the root folder solved the problem; Now I'm getting a different error in the command prompt. Progress!
"Script vs. class name mismatch (menuchoice_class/generated)
Superclass Window of class ActorDisplayWindow not found"
...I guess I need to do some actual coding work now.
"Script vs. class name mismatch (menuchoice_class/generated)
Superclass Window of class ActorDisplayWindow not found"
...I guess I need to do some actual coding work now.
Re: Assistance with basic coding?
I.. can assist with the first error..
well, look for a file either named 'menuchoice_class.uc' or 'generated.uc'
open them up, and it should be something like this:
now the thing you have to look for is; well, as the error suggests, the class name vs script has mismatch, so check if they both have the same name inside the class as well as on the script.
e.g; you have a file named 'chicken.uc' and when you open it up, it says:
you see the conflict there? the filename is chicken whereas the script says cat, so you have to fix that.
About the second error.. hmm, well, can you provide your DeusEx.ini, please?
Code: Select all
Script vs. class name mismatch (menuchoice_class/generated)
open them up, and it should be something like this:
Code: Select all
class menuchoice_class extends x
Code: Select all
class generated extends y
e.g; you have a file named 'chicken.uc' and when you open it up, it says:
Code: Select all
class cat extends Animal;
About the second error.. hmm, well, can you provide your DeusEx.ini, please?
Re: Assistance with basic coding?
My advice: Don't copy over any of the targeting reticle adjustment code from Deus Ex Enhanced, because it's weird and doesn't work right.Dinjoralo wrote:So, I'm trying to merge the Deus Ex Enhanced UI mod with the latest version of Shifter, but I've come across a problem; I have no idea what I'm doing.