AAO25.com

Community => Games & Programming => Topic started by: LEEFFM on Friday, October 31, 2014, 13:56:47 PM

Title: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 13:56:47 PM
I am following this tutorial http://wiki.beyondunreal.com/Legacy:UnrealScript_Hello_World (http://wiki.beyondunreal.com/Legacy:UnrealScript_Hello_World)
I downloaded ut2004 source here http://www.gamefront.com/files/4421162/ut2004scripts3369_zip (http://www.gamefront.com/files/4421162/ut2004scripts3369_zip)
the problem is there is no system directory and no ini file to edit.
also when using umake to compile HelloWorld.uc if I try to navigate to the Classes directory the compile button cannot be pressed, if I drag the .uc file to the umake.exe I get the error: UnrealScript project directories must be located directly below the game base directory

how do I fix this/what am I missing?
Title: Re: HelloWorld Uscript problom
Post by: Spanky on Friday, October 31, 2014, 13:59:24 PM
Sounds like you're missing UnrealEngine2Runtime:
http://www.moddb.com/engines/unreal-engine-2/downloads/unrealengine2-runtime (http://www.moddb.com/engines/unreal-engine-2/downloads/unrealengine2-runtime)

Also, to compile for AA, you'll need something called "AAOClass", see if you can find it on a cheat site. If not, I'm sure I have a copy. This brings in all the functions from AA as empty functions. It allows the code to compile since the referenced functions exist and that's all it checks for.
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 14:11:18 PM
I have the runtime installed , I just unzipped the ut2004scripts3369.zip and left everything in the unzipped directory, am I supposed to move the files into the UnrealEngine2Runtime directory?
 
ok I will look around and let you know if I find the AAOClass, Thanks.
Title: Re: HelloWorld Uscript problom
Post by: Spanky on Friday, October 31, 2014, 14:24:27 PM
The ut2004scripts3369 goes in the System folder of the Runtime. Those folders are the .u packages and the files in them are the classes and functions in the .u files.

You might be better off skipping the ut2004 scripts and just going for Runtime + AAOClass and the mods that I PM'd you.
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 14:27:02 PM
Ohhh I see :P, Thanks! , ok ill go look for the AAOClass now then :P  .
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 15:07:46 PM
I still cant press compile button and when dragging the .uc file directly I still get error: UnrealScript project directories must be located directly below the game base directory , the ut2004scripts3369 is in the system folder of the runtime along with AAOClass, I tried compiling AAOClass .uc files to check if they had the same error, they do.
Title: Re: HelloWorld Uscript problom
Post by: Spanky on Friday, October 31, 2014, 15:11:38 PM
Is UMake in the System folder?
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 15:19:19 PM
yes I have put UMake in the system folder
Title: Re: HelloWorld Uscript problom
Post by: Spanky on Friday, October 31, 2014, 15:34:58 PM
All I can imagine is that your folders aren't setup properly. Can you show some screenshots?

I was also told to make a shortcut of UMake on the desktop and to just drop the .uc on that icon.
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 15:58:30 PM
When I drag to the icon is when I get the error if I open Umake I simply cant press the compile button.

(https://aao25.com/forum/proxy.php?request=http%3A%2F%2FC%3A%5CUsers%5CGHOST%5CDesktop%5CUmake_Drag_uc.jpg&hash=c9b9b1e64d96c637388b2d611e2c31a0)
(https://aao25.com/forum/proxy.php?request=http%3A%2F%2FC%3A%5CUsers%5CGHOST%5CDesktop%5CRuntimelocation.jpg&hash=3985df0c7c843e57aab53012aac86563)
(https://aao25.com/forum/proxy.php?request=http%3A%2F%2FC%3A%5CUsers%5CGHOST%5CDesktop%5CUmakelocation.jpg&hash=cbcd037f5aa4cae2300f4485755ab5f9)
(https://aao25.com/forum/proxy.php?request=http%3A%2F%2FC%3A%5CUsers%5CGHOST%5CDesktop%5Cprojectlocations.jpg&hash=1a68ed203dcceeb4b42c350c9199a009)
(https://aao25.com/forum/proxy.php?request=http%3A%2F%2FC%3A%5CUsers%5CGHOST%5CDesktop%5Cumakeexelocaiton.jpg&hash=858b6c35acd06fc9de858fe08c87a577)
(https://aao25.com/forum/proxy.php?request=http%3A%2F%2FC%3A%5CUsers%5CGHOST%5CDesktop%5Cnocommilebutton.jpg&hash=21216b9cb73c07a6388ca8c5b1327131)

edit: how do I include not http:// screenshots?
Title: Re: HelloWorld Uscript problom
Post by: Spanky on Friday, October 31, 2014, 16:33:56 PM
You would have to setup a FTP server and forward your ports to share files on your computer.

To share them online, use any number of services like Imgur or Dropbox.
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 16:38:50 PM
I was hoping u wouldn't say that :P, http://imgur.com/JujqO5A&gjP3x5n&2gd0r9r&F7PiKhp&qVfMFEs&nK4BL0Q#0 (http://imgur.com/JujqO5A&gjP3x5n&2gd0r9r&F7PiKhp&qVfMFEs&nK4BL0Q#0) there should be 6 screenshots.
Title: Re: HelloWorld Uscript problom
Post by: NoBigDeal on Friday, October 31, 2014, 16:59:57 PM
First of all: UT2004 scripts will not compile in UE2 Runtime environment - engine version mismatch.
Second: all files from ut2004scripts3369.zip should be extracted to your base game directory.
Third: Use dedicated IDE (WotGreal, nFringe etc.) for editing and compilling your project.
Title: Re: HelloWorld Uscript problom
Post by: Spanky on Friday, October 31, 2014, 17:14:27 PM
Yea, that's the problem. You shouldn't have the "ut2004scripts3369" folder. The contents of it should be in the System folder in Runtime. Same for the AAOClass, in the picture below, you copy the contents from the left into the System folder for your compiling environment:

https://dl.dropboxusercontent.com/u/464376/aac_maap/compiling.PNG
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 17:21:22 PM
ohhh ok lol ill do that now :P, thanks :)
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 17:50:44 PM
This is crazy lol soo I deleted the runtime folder and reinstalled, then I copied the AAOClass contents over to the System folder, I deleted the AGP.u and when I try to compile the contents of the AGP Classes folder I get different errors , when I drag to desktop icon I get the same error as before about the game directory, when I open u make and drag the .uc files to the open umake window and press compile (at least I can press compile :P) I get a ucc error saying I have no ogg.dll but when I check the system folder there is a Ogg.dll (its in screen shots).

screen shots: http://imgur.com/W8v8dTY,gdedBro,VMBJdNb,oXh3135 (http://imgur.com/W8v8dTY,gdedBro,VMBJdNb,oXh3135)

edit: I tried replacing the ogg.dll with the one from the system folder for assist AA 2.5 but same error no ogg.dll
Title: Re: HelloWorld Uscript problom
Post by: NoBigDeal on Friday, October 31, 2014, 19:06:33 PM
You can't compile native classes - this will break engine integrity (even if you succeed).
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 19:17:51 PM
ok, but I still get these errors I have also now tried compiling the DeathGuardiansUltimateMod and same errors., where is the game base directory spanky says to put these files in the system folder and I have been but if I drag the .uc files to the umake desktop shortcut I get the unrealscript project directories must be located below the game base directory. , that is the one error that has stayed consistent this whole time.
Title: Re: HelloWorld Uscript problom
Post by: Spanky on Friday, October 31, 2014, 19:41:51 PM
LEEFFM, do you have skype or something? This is just painful to explain over the forum.
Title: Re: HelloWorld Uscript problom
Post by: LEEFFM on Friday, October 31, 2014, 20:00:21 PM
I agree I have like two Skype accounts but I don't have Skype nomore lol ill download Skype and pm you whatever username I happen to remember the password too :P