PDA

View Full Version : UnrealScript Tutorial Series



wildicv
11-16-2009, 10:13 AM
Hello everyone as i promised here is the first 3 videos of my UnrealScript tutorial series. If you have any questions or suggestions feel free to ask them here.

Download Directory:
http://dl.deathtouchstudios.com/videotutorials/UnrealScriptSeries/


Setting Up our Build Environment:
In this tutorial we cover how to setup the basic build environment that will be used in all the tutorials.
Download: http://dl.deathtouchstudios.com/videotutorials/UnrealScriptSeries/US01-SettingUpBuildEnvironment/


Learning The Variables:
In this tutorial we cover how to use some basic variable types.
Download:http://dl.deathtouchstudios.com/videotutorials/UnrealScriptSeries/US02-LearningTheVariables/


Learning Conditionals:
In this tutorial we cover basic if,else,and else if conditionals as well as the switch statement.
Download:http://dl.deathtouchstudios.com/videotutorials/UnrealScriptSeries/US03-LearningConditionals/

Youtube videos:
http://www.youtube.com/wildicv

Azzedinistan
11-16-2009, 10:16 AM
Awesome ! Thank you very much , I really need to work on the basis of programmation

R2D5
11-16-2009, 10:24 AM
thank you very very much

sueds
11-16-2009, 10:44 AM
that's sweet ! Thanks !

Piranhi
11-16-2009, 11:41 AM
Awesome, more more resources to tide me over till the books come out, thanks.

steph
11-16-2009, 12:16 PM
Nice work, thanks!

roychr
11-16-2009, 12:58 PM
Does it matter if I put my solution inside src\mymodname\ or is it a better practice to put it outside ? If per chance you know also how to add source control to the entire editor with an SCC plugin like pushOK, it would be valuable as putting all this up still evades me... it just wont work...

wildicv
11-16-2009, 01:22 PM
Its fully safe and acceptable to place your solution file in the src/mymodname/ i have my solution file there as well.

Ill make a video tutorial on how to add svn source managment.

InCharacter
11-16-2009, 01:38 PM
These are really good, wildicv. Thanks for putting them together.

- Jared

Nysuatro
11-16-2009, 01:41 PM
This is coming on the right moment. Thank you very much

Oldhair
11-16-2009, 03:45 PM
I hate to post this b/c it makes me look like an idiot. I'm trying to find the plugin you're mentioning in the tutorial but having no luck finding it. Can you post a link to the site.

insomnia3d
11-16-2009, 04:47 PM
how can i find plugin

roychr
11-16-2009, 05:19 PM
Come on guys, google nfringe and it will show as first result : http://wiki.pixelminegames.com/index.php?title=Tools:nFringe#Installation,

activate it whitout being a full licencee and it will be ok

Oldhair
11-16-2009, 05:23 PM
thanks thats why I felt bad posting i was trying infringe and enfringe etc.

insomnia3d
11-16-2009, 05:25 PM
Come on guys, google nfringe and it will show as first result : http://wiki.pixelminegames.com/index.php?title=Tools:nFringe#Installation,

activate it whitout being a full licencee and it will be ok

tnx and sorry. i watch video but my english not good:)

roychr
11-16-2009, 06:10 PM
sorry for being *****y, was not my intention ^^

wildicv
11-16-2009, 07:46 PM
Yeah my pronunciation was off on saying nFringe. If i ever mention a certain tool or plugin you can check the youtube version and ill link were to get the tool/plugin in the comments box.

InCharacter
11-16-2009, 09:26 PM
Hey Wildicv,

I'm having an issue. I go through the tutorial step by step, but when I build it does not seem to be copying the .u file into the right place.

I have the following set manual override set, but it does not seem be actually working at all. The output is:
------ Build started: Project: ICGTestGame, Configuration: Debug Win32 ------
Could not locate the .NET Framework SDK. The task is looking for the path to the .NET Framework SDK at the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK. 2.) Manually set the above registry key to the correct location.
ICGTestGame -> E:\UDK\UDK200911\Development\Src\ICGTestGame\Unpub lished\CookedPC\Script\ICGTestGame.u
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

But the directory referenced above is empty as well. Any ideas?

- Jared

InCharacter
11-16-2009, 09:30 PM
Oh, and using the UnrealFrontend, it compiles fine and the .u file appears. It is just through nFringe and Vis Studio it doesn't seem to work.

MukiHyena
11-17-2009, 02:32 AM
Hey Wildicv,

I'm having an issue. I go through the tutorial step by step, but when I build it does not seem to be copying the .u file into the right place.

I have the following set manual override set, but it does not seem be actually working at all. The output is:
------ Build started: Project: ICGTestGame, Configuration: Debug Win32 ------
Could not locate the .NET Framework SDK. The task is looking for the path to the .NET Framework SDK at the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK. 2.) Manually set the above registry key to the correct location.
ICGTestGame -> E:\UDK\UDK200911\Development\Src\ICGTestGame\Unpub lished\CookedPC\Script\ICGTestGame.u
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

But the directory referenced above is empty as well. Any ideas?

- Jared

I'm having a similar issue. I've followed the tutorial step-by-step, and am having no .u file appear. I'm also having an issue where it's sending it to:

K:\Documents and Settings\Administrator.EXPERIEN-C563A1\My Documents\Visual Studio 2008\Projects\MyGame\MyGame\Unpublished\CookedPC\S cript\MyGame.u

rather than:

F:\Program Files\Games\UDK\UDK-2009-11\UTGame\Script\MyGame.u.

And yes, I have set the "Manually Set UCC output directory" in the Build options to F:\Program Files\Games\UDK\UDK-2009-11\UTGame\Script. I've also tried setting the UCC output to C:\, only to have it send the .u to the same directory as before.

danimal'
11-17-2009, 03:48 AM
Looking good. Not sure what you're plan is but I'd suggest covering the default properties upfront. I didn't fully understand inheritance, and thus how much work was done in default properties when I first started (not a programmer so it wasn't intuitive to me and messed me up). Just my 2 cents, this kind of thing is really really needed, thanks.

danimal

wildicv
11-17-2009, 08:54 AM
MukiHyena and InCharacter please make sure to double check your settings also if your on a vista machine sometimes the UAC will prevent visual studio from copying files to certain c:\ directorys which does sound weird but does happen so try disabling this.

Danimal: ill be covering default properties when i explain classes.

InCharacter
11-17-2009, 09:01 AM
MukiHyena,

Does the .u file actually appear in the cookedPC\Script directory? Mine is not showing up there either.

- Jared

InCharacter
11-17-2009, 09:02 AM
wildicv,

Yeah, I double checked the settings and then triple checked them. Will try it on my lap top today instead and see if it works on that machine instead. If not I guess I'll just use the front end for compiling.

- Jared

roychr
11-17-2009, 10:08 AM
Go to the unreal frontend and do a full recompile (button after cooking) and check the warnings if any. In any cases, you did not enter the paths or set the projects options correctly. Go over the video again. I assure you, if followed, it will work. I had problems because I edited certain .ini files and after a failed compilation in VS I went to compile it in the front end and it gave me the exact error why it failed. From that information it was then easy to fix.

Hope this helps

MukiHyena
11-17-2009, 06:44 PM
wildicv,

To answer you question, I'm not on a Vista machine, I'm on XP SP3.

Here are my settings.

http://i655.photobucket.com/albums/uu279/m00kz/vs1.png

http://i655.photobucket.com/albums/uu279/m00kz/vs2.png

http://i655.photobucket.com/albums/uu279/m00kz/vs3.png

And here's the output upon Build Solution:

------ Build started: Project: MyGame, Configuration: Debug Win32 ------
Could not locate the .NET Framework SDK. The task is looking for the path to the .NET Framework SDK at the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK. 2.) Manually set the above registry key to the correct location.
MyGame -> K:\Documents and Settings\Administrator.EXPERIEN-C563A1\My Documents\Visual Studio 2008\Projects\MyGame\MyGame\Unpublished\CookedPC\S cript\MyGame.u
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

In that directory, no .u file appears.

Not sure if I've overlooked anything.

MukiHyena
11-18-2009, 12:18 AM
I've found the problem. The MyGame project the your video was saved in f:\Program Files\Games\UDK\UDK-2009-11\Development\Src\. After a fresh install, my computer defaults to save projects to save in K:\Documents and Settings\Administrator.EXPERIEN-C563A1\My Documents\Visual Studio 2008\Projects.

That fixed the pathing issue. Now to fix the .u file not showing. I will attempt roychr's method.

Edit: Got it working. Some ran into some minor pathing issues, but I managed to get it working. My environment is set up, and I've successfully tested the scripts using some multiplied integers. Hopefully this will get me into scripting.

Piranhi
11-18-2009, 07:57 AM
Thanks for the tutorials, but an even bigger thanks for letting me know about the Dreamspark website, that's helped a great deal.

wildicv
11-18-2009, 08:35 AM
Glad you guys figured it out. Sorry i didn't respond yesterday i didn't have access to a computer.

AinigmA
11-18-2009, 09:03 PM
Wildicv, Great tuts! Definitely appreciate your work.
If you are interested in a little criticism I have some suggestions.
Firstly, it would be easier to follow you if you didn't have that irregular color scheme during the tutorials. I was running into the same issue as MukiHyena and InCharacter with the MyGame.u not being copied over. It turned out I didn't have the source files in the development/src. When watching your tut we can't see the folder you select at that juncture. [min 4:24]
Second, the volume in the tutorials is a bit low. Not a big deal but something to keep in mind for future tuts. It's a constant volume up, volume down game.

Again, thanks for the time you've put into this already.

AinigmA

MukiHyena
11-19-2009, 04:30 AM
Glad you guys figured it out. Sorry i didn't respond yesterday i didn't have access to a computer.

It's all good. Eagerly waiting the next part. Assuming there's a new one coming up ;)

wildicv
11-19-2009, 10:58 PM
A little update guys. It seems thanksgiving break is coming up and i won't be with a fast connection so I’m sorry to say there will be no new videos all next week...But i promise to throw together some tutorials over the week so there should be some nice new tutorials. Some will be specific to unreal script others will be to setting up your environment. I may even put some tutorials that don't pertain to the UDK but to game development in general.

I’m sorry to those who were hoping to see new tutorials soon as always life catches up at times but as I said I will be making more. I have a lot to teach and a urge to teach it.

KAI_Z
11-20-2009, 02:28 AM
very good,thanks guys.

sh0v0r
11-22-2009, 05:24 AM
Thankyou for these tutorials they are great! :)

I have been looking at the first one and encountered a problem with the location of my script file after it was built, it ended up here:

C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\MyGame\MyGame\Unpublished\CookedPC\S cript\MyGame.u

I have set the: 'Manually set the UCC output directory' with this path: E:\UDK\UDK-2009-11-2\UTGame\Script

Any ideas?

sh0v0r
11-22-2009, 07:14 AM
Thankyou for these tutorials they are great! :)

I have been looking at the first one and encountered a problem with the location of my script file after it was built, it ended up here:

C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\MyGame\MyGame\Unpublished\CookedPC\S cript\MyGame.u

I have set the: 'Manually set the UCC output directory' with this path: E:\UDK\UDK-2009-11-2\UTGame\Script

Any ideas?

OK never mind I worked it out eventually, I found a small snippet in a sentence that states to put the project folder in the development/src folder.

On this page: http://udn.epicgames.com/Three/DevelopmentKitFirstScriptProject.html

"So you should store the project and solution files in UDK\Development\src, just like the instructions mention."

I didn't read that in any instructions but nonetheless it's all working and building to the correct location now. :)

soniq
11-22-2009, 08:32 PM
First of all, thanks for the tutorials.

(btw, sorry for my english)

So, Wildicv, I know, your potential audience are people who have never heard about programming languages and programming in general, but I think that it would be better to increase difficulty level of your tutorials and not to explain simple things during the whole tutorial. In my opinion, it would be easier for you to speak about differencies in UnrealScript and C++/Java, rather than explain the whole language from the beginning. It's just an advice.

But, surely you've made a great and good work. Thank you, once more. Looking forward for the next tutorials.

wildicv
11-23-2009, 12:14 PM
Soniq I have thought about this myself but considering unrealscript is a lot like every other language out there. There wouldn’t be a whole lot to say. My idea is to teach the basics with my tutorials so people who are trying to do things with the UDK won’t just copy and paste scripts unknowing what it does but they will be able to read and modify them easily. After I teach the basics ill start showing them how to interact with the UDK teaching the basics then teaching how to interact with the UDK is way easier than just teaching how to interact with the UDK and getting tons of “what does this mean/do” post. Get what I mean?

I’m off for a week so if anyone has any personal request for tutorials on programming in general or anything on the programming side of the UDK please put your request here. Don’t post anything about level design, cloth, etc has ill leave those tutorials to raven and the other pro’s.

roychr
11-23-2009, 02:58 PM
wildicv, In the interest to move foward to more advanced things, FPS's are one of the main video game styles out there but there are other people that may like to develop other gaming style and I am definitly longing for a real script tutorial on the entire camera framework (PlayerController, ThirdPersonCamera and such) I am personnally doing an Isometric game and doing some headway in this direction thanks to other forum members. Here is the thread (http://forums.epicgames.com/showthread.php?p=26997298#post26997298) if it interest you in doing an extensive and informative video tutorial on overriding placement and rotation of camera whitout breaking all the wonderfull facilities of Kismet or Matine.

Cheers

Visceral89
11-24-2009, 07:15 AM
I have been trying to get into coding for some time now. And i wanna thank OP for this tutorial series.

Just a question...where do i go from here? Whats the next step? Can i do something practical with this knowledge.

Jonny T
11-26-2009, 07:51 PM
Hey guys,

I've encountered the same problem as a few other people on this board where my '.u' file hasn't been created.

I've managed to make sure the project is saved and stored in the correct path - UDK\Development\src, but the u. file hasn't been generated in ether place, i.e.

UDK\Development\src\mymod\mymod\unpublished\Cooked PC\Scripts

or in the

UDK\UDK-2009-11-2\UTGame\Script

I'm running Vista 64bit, latest UDK, VS2008 v9.0.30729.1 SP

Any ideas?

iqnet
11-27-2009, 08:49 AM
Hey guys,

I've encountered the same problem as a few other people on this board where my '.u' file hasn't been created.

I've managed to make sure the project is saved and stored in the correct path - UDK\Development\src, but the u. file hasn't been generated in ether place, i.e.

UDK\Development\src\mymod\mymod\unpublished\Cooked PC\Scripts

or in the

UDK\UDK-2009-11-2\UTGame\Script

I'm running Vista 64bit, latest UDK, VS2008 v9.0.30729.1 SP

Any ideas?

Make sure that the UCC path is set in vs to utgame\script. DO not let VS create a solution folder, or else the uc file will end up in UDK\UDK-2009-11-2\Development\src\mymod\*mymod*\classes\something. uc and that is not good, udk will not find it and there for not copy it, thats what i had problems with anyway. Hope it helps.

/iq

tomneo2004
11-28-2009, 05:17 AM
:(I most give up, can anyone help me, i follow the tutorial step but result is compile failed. Does any one know why? I also change UTGame.ini ;ModEditPackages=MyMod to ModEditPackages=MyGame ,only if ModEditPackages=MyGame back to ;ModEditPackages=MyMod and it can compile, but i couldn't find MyGame.u file anywhere in my computer. In vs compile output just say failed, therefore i couldn't event know where got wrong. I use vs2005 and all the setting is same as tutorial did(i have check many times), my operation system is xp sp3.

I don't know how to use unreal frontend to compile

ps: when i creating the project i uncheck build solution so the "Classes" folder is at D:\UDK\Development\Src\MyGame\Classes

hide
11-28-2009, 05:50 AM
I also change UTGame.ini ;ModEditPackages=MyMod to ModEditPackages=MyGame ,only if ModEditPackages=MyGame back to ;ModEditPackages=MyMod
...
I don't know how to use unreal frontend to compile

ps: when i creating the project i uncheck build solution so the "Classes" folder is at D:\UDK\Development\Src\MyGame\Classes

Make sure you removed "Read-only" on the .ini files.

To compile with the unreal frontend : first of all => It's in the UDN.
Second, just click "make" and read what is outputed.

Gridchaser
11-28-2009, 08:48 AM
Hi, I had problems with compiling uc files in UDK too, but then I have tried instructions on http://tutorials.toltecstudios.com/ and it works - in my case. The steps for compiling the scripts for UT3 and UDK seem to be different. And - sorry for my poor English.

tomneo2004
11-28-2009, 09:39 PM
Make sure you removed "Read-only" on the .ini files.

To compile with the unreal frontend : first of all => It's in the UDN.
Second, just click "make" and read what is outputed.

Still the same problem compile failed.

Any idea why you guys are ok but not ok for me

I think UDK is jerking me around.
What a unlucky to me

tomneo2004
11-28-2009, 09:40 PM
Hi, I had problems with compiling uc files in UDK too, but then I have tried instructions on http://tutorials.toltecstudios.com/ and it works - in my case. The steps for compiling the scripts for UT3 and UDK seem to be different. And - sorry for my poor English.

Init: Version: 5860
Init: Epic Internal: 0
Init: Compiled (32-bit): Nov 12 2009 14:51:59
Init: Command line: -full -DEFENGINEINI=..\..\UTGame\Config\DefaultEngineUDK. ini
Init: Base directory: D:\UDK\Binaries\Win32\
Init: Character set: Unicode
Log: Executing Class UnrealEd.MakeCommandlet
--------------------Core - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\Core.u'
--------------------Engine - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\Engine. u'
--------------------GameFramework - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\GameFra mework.u'
--------------------UnrealEd - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UnrealE d.u'
--------------------UnrealScriptTest - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UnrealS criptTest.u'
--------------------IpDrv - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\IpDrv.u '
--------------------OnlineSubsystemPC - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\OnlineS ubsystemPC.u'
--------------------UTGame - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTGame. u'
--------------------UTEditor - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTEdito r.u'
--------------------UTGameContent - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTGameC ontent.u'

Success - 0 error(s), 0 warning(s)
Execution of commandlet took: 19.92 seconds

MyGame is not been compile why?

I did that tutorial says add +EditPackages=MyGame to DefaultEngine.ini


And i compile again i got error

Init: Version: 5860
Init: Epic Internal: 0
Init: Compiled (32-bit): Nov 12 2009 14:51:59
Init: Command line: -full -DEFENGINEINI=..\..\UTGame\Config\DefaultEngineUDK. ini
Init: Base directory: D:\UDK\Binaries\Win32\
Init: Character set: Unicode
Log: Executing Class UnrealEd.MakeCommandlet
--------------------Core - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\Core.u'
--------------------Engine - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\Engine. u'
--------------------GameFramework - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\GameFra mework.u'
--------------------UnrealEd - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UnrealE d.u'
--------------------UnrealScriptTest - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UnrealS criptTest.u'
--------------------IpDrv - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\IpDrv.u '
--------------------OnlineSubsystemPC - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\OnlineS ubsystemPC.u'
--------------------UTGame - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTGame. u'
--------------------UTEditor - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTEdito r.u'
--------------------UTGameContent - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTGameC ontent.u'
--------------------MyGame - Release--------------------
Analyzing...
D:\UDK\Binaries\..\Development\Src\MyGame\Classes\ MyPawn.uc : Error, Bad class definition ''/'UTPawn'/715/715
Compile aborted due to errors.

Warning/Error Summary
---------------------
D:\UDK\Binaries\..\Development\Src\MyGame\Classes\ MyPawn.uc : Error, Bad class definition ''/'UTPawn'/715/715

Failure - 1 error(s), 0 warning(s)
Execution of commandlet took: 19.87 seconds



The result is that if i delete UTEngine.ini then compile it i got error, if i don't delete it then compile pass, but MyGame is not compiled. MyGame.u file is never generated.

I am getting sick on this

what a odd UDK i think UDK is not suitable for some pc

Gridchaser
11-29-2009, 01:48 PM
Hi, according to log you've sent - it could be a syntax or coding error in the uc file:
MyPawn.uc : Error, Bad class definition ''/'UTPawn'/715/715. You can try to write a very simple uc file - write only the definition of the class, make sure that syntax of code is correct and then try to compile just this one file. If this simple script will compile right, probably there's an error in uc script that doesn't compile.

MagnumAI
11-29-2009, 06:57 PM
Good videos, but the volume is a little low and hard to see the text with your black theme:) Just an FYI..

I did go through the videos and noticed you setup a directory structure but you had trouble at the end when packaging your game. You moved a map file and never went back to show how it was corrected. That tells me the initial directory structure or your settings were wrong.

For me I setup the initial directory structure like this:

Development\scr\myGame\Classes - This holds my scripts
UTGame\mygame\Content\Maps - of course Maps
UTGame\mygame\Content\MyGame - Shaders are compiled by the engine here

The following directories may or may not be needed:

UTGame\mygame\Content\MyGame\Characters
UTGame\mygame\Content\MyGame\FX
UTGame\mygame\Content\MyGame\Pickups
UTGame\mygame\Content\MyGame\Sound
UTGame\mygame\Content\MyGame\UI
UTGame\mygame\Content\MyGame\World

By doing it this way (I also changed several other ini settings) I had no trouble packaging and installing my new game. The main difference is I moved all of the content out back under UTGame.

tomneo2004
11-29-2009, 11:26 PM
Hi, according to log you've sent - it could be a syntax or coding error in the uc file:
MyPawn.uc : Error, Bad class definition ''/'UTPawn'/715/715. You can try to write a very simple uc file - write only the definition of the class, make sure that syntax of code is correct and then try to compile just this one file. If this simple script will compile right, probably there's an error in uc script that doesn't compile.

The code in my MyGameInfo.uc is like this

class MyGameInfo extends UTDeathmatch;

Only one line of code

but i still got error

D:\UDK\Binaries\..\Development\Src\MyGame\Classes\ MyGameInfo.uc : Error, Bad class definition ''/'UTDeathmatch'/45/45
Failure - 1 error(s), 0 warning(s)

Any idea

Also can some body tell me why if i add ModEditPackages=MyGame to UTEngine.ini then in visual studio compile get error like above, but if i don't add that line then it compile success, but no .u file

iqnet
11-30-2009, 06:37 AM
class MyGameInfo extends UTDeathmatch;

Do you have this in your class file?
DefaultProperties
{
}

Default propreties should always be defined in a class file even if the block is empty.

If you do not add the ModEditPackages=MyGame to the ini file of the engine the compiler will skip compiling those class file all together, because it then does not know that they even exist.
//IQ

Blade[UG]
11-30-2009, 07:11 AM
Make sure you save your files in straight ASCII

tomneo2004
11-30-2009, 10:34 PM
class MyGameInfo extends UTDeathmatch;

Do you have this in your class file?
DefaultProperties
{
}

Default propreties should always be defined in a class file even if the block is empty.

If you do not add the ModEditPackages=MyGame to the ini file of the engine the compiler will skip compiling those class file all together, because it then does not know that they even exist.
//IQ

Ya, i add it to my code and ModEditPackages=MyGame but still have same problem

D:\UDK\Binaries\..\Development\Src\MyGame\Classes\ MyGameInfo.uc : Error, Bad class definition ''/'UTDeathmatch'/68/68
Failure - 1 error(s), 0 warning(s)

MagnumAI
11-30-2009, 10:47 PM
Ya, i add it to my code and ModEditPackages=MyGame but still have same problem

D:\UDK\Binaries\..\Development\Src\MyGame\Classes\ MyGameInfo.uc : Error, Bad class definition ''/'UTDeathmatch'/68/68
Failure - 1 error(s), 0 warning(s)

Just something I noticed. It looks like there is hidden character between Classes\ MyGameInfo.uc between the "\" and the "M"..

Did you type that or copy and paste? It's finding the file but could it be it is not seeing the file being named the same as the class?

tomneo2004
12-01-2009, 10:50 AM
Just something I noticed. It looks like there is hidden character between Classes\ MyGameInfo.uc between the "\" and the "M"..

Did you type that or copy and paste? It's finding the file but could it be it is not seeing the file being named the same as the class?

It is copy and past problem, and there is no hidden character.
The compiler did find the MyGameInfo.uc file but just keep saying bad class definition

Here is the picture
http://img4.imageshack.us/img4/4765/73498652.jpg

Here is the UTEngine.ini that i modify
http://img138.imageshack.us/img138/5268/98103637.jpg

54sun
12-01-2009, 11:39 AM
I put the project at C:\UDK\UDK-2009-11-2\Development\Src\MyGame
and I've got a strange situation:

No mater what path I set the at "Script Outputs", the MyGame.u
always build at C:\UDK\UDK-2009-11-2\UTGame\Script

and the build output always like this (in fact the MyGame.u is built at C:\UDK\UDK-2009-11-2\UTGame\Script):
------ Build started: Project: MyGame, Configuration: Debug Win32 ------
MyGame -> C:\UDK\UDK-2009-11-2\Development\Src\MyGame\Unpublished\CookedPC\Scri pt\MyGame.u
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

I'm sure I check the "Manually set UCC output directory", but it seems doesn't work at all!

anyone has any idea?

Regards,

MagnumAI
12-01-2009, 06:08 PM
@tomneo

You are correct, sorry the situation I was describing would produce a different error: Script vs. class name mismatch

soniq
12-01-2009, 06:37 PM
It is copy and past problem, and there is no hidden character.
The compiler did find the MyGameInfo.uc file but just keep saying bad class definition

Here is the picture
...

Here is the UTEngine.ini that i modify
...

didn't you try to compile this with Unreal Frontend?

tomneo2004
12-01-2009, 08:56 PM
didn't you try to compile this with Unreal Frontend?

I tried but the same message, just can't not figure out why.
Is it because nfringe problem?

Before i install nfringe i intasll ProjectAggregator2.msi, because i use vs 2005

tomneo2004
12-01-2009, 09:04 PM
@tomneo

You are correct, sorry the situation I was describing would produce a different error: Script vs. class name mismatch

No sorry but thank you for trying to help me.
By the way when i install the UDK the language is chinese but i after that i change Language to INT(English) in UTEngine.ini.

soniq
12-01-2009, 09:08 PM
I tried but the same message, just can't not figure out why.
Is it because nfringe problem?

Before i install nfringe i intasll ProjectAggregator2.msi, because i use vs 2005

No, I don't think that this is a problem with nFringe.

So, did you make a fresh install of UDK? (Do you use wildcv's "cut" version or standart UDK, downloaded from site (or mirrow))?

If yes, and you have a file "{UDKDIR}\UDK-2009-11-2\Development\Src\UTGame\Classes\UTDeathmatch.uc", then check your source file (MyGameInfo.uc) encoding - it must be ANSI text.

Good luck

tomneo2004
12-01-2009, 11:17 PM
No, I don't think that this is a problem with nFringe.

So, did you make a fresh install of UDK? (Do you use wildcv's "cut" version or standart UDK, downloaded from site (or mirrow))?

If yes, and you have a file "{UDKDIR}\UDK-2009-11-2\Development\Src\UTGame\Classes\UTDeathmatch.uc", then check your source file (MyGameInfo.uc) encoding - it must be ANSI text.

Good luck

I did make a fresh install of UDK. I download UDK from offical site and i do have UTDeathmatch.uc. How do i check the MyGameInfo.uc is ANSI or not?

It is very strange situation here, i create a MyGameInfo.uc file with WorldPad then first i use frontend to compile i get pass, second i add it to vs 2005 and then compile i get pass and both ways generate MyGame.u file, but if i create project with vs 2005 and follow the tutorial instruction i get compile error which i posted before.

The result is that, if i create source code with WorldPad everything work fine but if i create source code in vs 2005 i get compile error.

I might find the problem, seems vs 2005 save source file as other encode, but i don't know how to tell vs 2005 to save source file as ANSI?

MagnumAI
12-02-2009, 01:24 AM
Try turning on auto-detect..

Tools>Options Auto-detect UTF-8 encoding....

riowahab
12-02-2009, 12:14 PM
I got this one problem.

I change all the notepad that you ask,but why there is no message when I launched the editor for the first time?

*edited

Although it is not updating, but it is working. Thank you.

tutorial request:

How to just get rid the gun and the crosshair? I still want the walking,and jumping.
How to change the weapon and the crosshair?

Thank you!

Joseph Ferano
12-02-2009, 09:27 PM
Hey guys, sorry to bother but I seem to be running into the same problem as everyone else. My MyGame.u file is just not being created, I have tried all of the different solutions offered and nothing. The game runs but just doesn't find that .u file. I tried two different Solution Folders, one on the Desktop and the Development/Src location. I have the UCC manually set, I set permissions on the folder to allow all for every user available. None of that seems to fix the issue.

I do have some interesting things going on that might have to do with it. First of all, when I try to run my game, it says that my scripts are "outdated" and asks me if I want to reload them. Does that have anything to do with the problem? Also, whenever I finish running the game, it says that the UTEngine.inf has been modified elsewhere and asks me if I want to reload it, another weird prompt. Any help would be appreciated.

Smith
12-02-2009, 11:04 PM
Ensure that the UDK editor is closed when making changes to any .ini files. My experience with the .u file not being created seems related to having the editor open while modifying the entry for ModEditPackages in UTEngine.ini.

Smith

Label
12-03-2009, 01:17 PM
I put the project at C:\UDK\UDK-2009-11-2\Development\Src\MyGame
and I've got a strange situation:

No mater what path I set the at "Script Outputs", the MyGame.u
always build at C:\UDK\UDK-2009-11-2\UTGame\Script

and the build output always like this (in fact the MyGame.u is built at C:\UDK\UDK-2009-11-2\UTGame\Script):
------ Build started: Project: MyGame, Configuration: Debug Win32 ------
MyGame -> C:\UDK\UDK-2009-11-2\Development\Src\MyGame\Unpublished\CookedPC\Scri pt\MyGame.u
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

I'm sure I check the "Manually set UCC output directory", but it seems doesn't work at all!

anyone has any idea?

Regards,

Hi there, I was having the exact same problem, which I just overcome.

When you go into your "C:\UDK\UDK-2009-11-2\Development\Src\MyGame\" folder is the "Classes" folder in there, and not within another folder called "MyGame"?

If so just cut and paste the "Classes" folder into the "C:\UDK\UDK-2009-11-2\Development\Src\MyGame\" directory and all should work fine.

The problem is that UDK is looking for the MyGameInfo.uc at "C:\UDK\UDK-2009-11-2\Development\Src\MyGame\Classes\MyGameInfo.uc" and is not able to find it.

If this is not your problem I am sorry this is of no help, but hopefully it will help someone!

Joseph Ferano
12-03-2009, 07:37 PM
hi there, i was having the exact same problem, which i just overcome.

When you go into your "c:\udk\udk-2009-11-2\development\src\mygame\" folder is the "classes" folder in there, and not within another folder called "mygame"?

If so just cut and paste the "classes" folder into the "c:\udk\udk-2009-11-2\development\src\mygame\" directory and all should work fine.

The problem is that udk is looking for the mygameinfo.uc at "c:\udk\udk-2009-11-2\development\src\mygame\classes\mygameinfo.uc" and is not able to find it.

If this is not your problem i am sorry this is of no help, but hopefully it will help someone!

You got it to work for me!!!! Thank you!!!!

By the way, how would I make it so that whatever new code I make gets automatically sent there, should I make a link?

tomneo2004
12-04-2009, 09:41 AM
Try turning on auto-detect..

Tools>Options Auto-detect UTF-8 encoding....

This is not working too, but i figure problem out, and i want to share the solution to people who have same problem.

First, my problem is that i can't compile the source code, although i follow the tutorial video and i can't generate .u file, because my vs 2005 save source file as UTF-8 encoding but UDK take ANSI.

Here is what i did. I open source file, for example, MyGame.uc and then select File->Advanced Save Options it will jump out a window and in Encoding combobox select Unicode- Codepage 1200, in Line endings combobox select Current Setting then click ok. Every time you create a new source file you must do it.

I hope this can solve some people's problem.

Sainoob
12-09-2009, 08:46 AM
The 'MyGame.u' file wasn't copied to the UTGame->Script folder. When I run my project, it says Failed to find Object 'Class MyGame.MyGameInfo' and a bunch of other 'failed to find...' messages. Also, the "Testing" message doesn't appear in the log. What's wrong with this?

thomasmahler
12-09-2009, 03:31 PM
This is good stuff dude, keep going :)

kill_stuff
12-14-2009, 04:18 AM
You got it to work for me!!!! Thank you!!!!

By the way, how would I make it so that whatever new code I make gets automatically sent there, should I make a link?

When you create a project make sure that the "Create Directory for Solution" box is NOT checked.

this will make your project directory look like
C:\UDK\UDK-2009-11-2\Development\Src\MyGame\Classes

and not
C:\UDK\UDK-2009-11-2\Development\Src\MyGame\MyGame\Classes

neo_an_anomaly
12-14-2009, 11:46 AM
When you create a project make sure that the "Create Directory for Solution" box is NOT checked.

this will make your project directory look like
C:\UDK\UDK-2009-11-2\Development\Src\MyGame\Classes

and not
C:\UDK\UDK-2009-11-2\Development\Src\MyGame\MyGame\Classes

Exactly. Keeping that option checked prevents the .u file from being created inside the script folder. Now, to my problem, the log message does not print for me in the console window. I did exactly as the video said but no results. The last message it prints for me is "Match started".

Could anybody that had a similar problem help me find a solution?

Thanx

Repent_
12-14-2009, 02:03 PM
You know whats going on with that ? Ive downloaded it like six times & same thing every time :?

http://img709.imageshack.us/img709/8418/image1bt.jpg

steph
12-14-2009, 02:07 PM
Did you tried with RunAsAdministrator?

Repent_
12-14-2009, 02:53 PM
Did you tried with RunAsAdministrator?

Okay I got it to install but, now I have a new problem =(
look
http://ame.cc/view/wtf-wrong-my-pc.Kz6uOum-jiE

RJM74
12-14-2009, 03:10 PM
I notice you are using VS 2005, did you follow the instructions on the nFringe website regarding using nFringe with that version of VS.

(Visual Studio 2005 users only) Download and install the ProjectAggregator2 module for Visual Studio 2005. This module is required for creating UnrealScript projects.

Repent_
12-14-2009, 03:39 PM
Yeah I did that
& I use Visual Studio 2005 Standard Edition

Maybe it just won't work with Standard Edition ?

___EDIT___

Found one that works

http://classes.cs.kent.edu/gpg/proj-1/trac/browser/Extras/nFringeSetup-1.0.23517.0.msi?rev=24

an older copy I think

neo_an_anomaly
12-15-2009, 08:58 AM
Did anybody run into the problem of "testing" not getting printed in the console? I'm still stuck with this here not knowing what to do.

Please help...

Thanx

Sainoob
12-18-2009, 11:14 PM
When I run my program it says in the log "Warning, paths may not be valid" and when I close it says UTEngine.ini has been edited outside of the source editor, do you want to reload it? It does this every time and I've reinstalled about 8 times and it still has the same thing. What's wrong here? All my paths are exactly the same as in the tutorial. I am also saving to development/src. Is that the problem maybe?

Lukio
01-03-2010, 07:36 AM
The 'MyGame.u' file wasn't copied to the UTGame->Script folder. When I run my project, it says Failed to find Object 'Class MyGame.MyGameInfo' and a bunch of other 'failed to find...' messages. Also, the "Testing" message doesn't appear in the log. What's wrong with this?

Same here - the "Testing" log output message is not visible in the console or in the launch.log file. Double-checked everything by redoing the whole process.

Also it seems my game .u file does not get recreated in the directory when i use Build, only if I delete it, it will create a new one, although there have been changes within the the .uc file.

Lukio
01-03-2010, 05:08 PM
Same here - the "Testing" log output message is not visible in the console or in the launch.log file. Double-checked everything by redoing the whole process.

Also it seems my game .u file does not get recreated in the directory when i use Build, only if I delete it, it will create a new one, although there have been changes within the the .uc file.


ScriptLog: This is a test test

It works - the mistake seemed to be between the output directory of MS VS and the directory structure in my development folder. After redoing everything and verifying 100% what Studio is doing I got it right.

So even after disabling the "Create directory" option, it still would create a sub directory named "testgame" because i picked the "dev\src\testgame" folder instead of just using "dev\src\".

TLDR; - Stupid me, great tutorials, keep it up wildicv

BirthNight
01-07-2010, 12:05 AM
Thank you SOOOOO MUCH! Keep the tutorials coming as often as you can. I HIGHLY appreciate all of the valuable information you've provided me.

:)

sdinesh86
01-07-2010, 03:50 PM
hey

i followed the tutorial correctly but i am facing a problem

i did a full recompile and got this showing up
K:\UDK\Development\Src\EkamGame\Classes\EkamGameIn fo.uc(5) : Warning, Invalid object 'Class Core.Class' specified for property 'PlayerControllerClass'

do u know whats the poblem

and also the tut says to copy .sln .suo and .ucproj file to src folder i did that but after that if i try to open he project it doesnt open up

whats the prob

DaemonXR
01-09-2010, 12:30 PM
Wildicv, Thanx for master guide and your video tutorials. Appreciate the effort u put, to give us non programmer a little bit of light in the darkness of setting up UDK and Unscript.
Though i have few questions i would like to be answered.
1=>Do i need to use MS VisualStudio + Nfringe or i can end up with ConText + Unreal highliter cause i am not a student now (with 36 years in my butt:D) and cant spend extra money in such tool for now.
Are u using these just to have better integration with your projects and to easily track changes in your code? What would be better solution except Context+highlighter.I do pass tutorial from Toltecstudios.com allready.
2=>I am really eager to learn programming so what would be your advice to setup better base in understanding Unscript? to learn C,C++ or C#?
Many books are already available to me so any advice on that issue would be most appreciated.
3=>Probably most important question for me as an artist (while i am not engineer officer on ships) is: can i design and build my levels independently of learning scripting and later integrate those levels in game? I dont want my capabilities go sink in dark ages because of time effort i attend to invest learning programming!
Anyway keep up and i hope i will see more tuts from u on this site!
Cheers!

micahpharoh
01-21-2010, 12:11 AM
May I ask what screen capture software you use? Thanks for these fantastic tutorials. They've really been a nice introduction to UnrealScript for me.

steph
01-21-2010, 11:51 AM
hey

i followed the tutorial correctly but i am facing a problem

i did a full recompile and got this showing up
K:\UDK\Development\Src\EkamGame\Classes\EkamGameIn fo.uc(5) : Warning, Invalid object 'Class Core.Class' specified for property 'PlayerControllerClass'

do u know whats the poblem

and also the tut says to copy .sln .suo and .ucproj file to src folder i did that but after that if i try to open he project it doesnt open up

whats the prob

You get the error because you don't have a default player controller in your DefaultProperties.
Like:
PlayerControllerClass=class'EkamGamePlayerControll er'

For your other problem, edit the Ekam.ucproj file and go find the <ItemGroup>, correct all the links to your folder, you should have something like:
<ItemGroup>
<Compile Include="*Ekam\Classes\*.uc" />
<Content Include="**\*.uci" />
<Content Include="**\*.uc" />
</ItemGroup>
<ItemGroup>
<Folder Include="Ekam\" />
<Folder Include="Ekam\Classes\" />
<Folder Include="Core\" />
<Folder Include="Core\Classes" />
<Folder Include="Engine\" />
<Folder Include="Engine\Classes\" />
<Folder Include="GameFramework\" />
<Folder Include="GameFramework\Classes\" />
<Folder Include="IpDrv\" />
<Folder Include="IpDrv\Classes\" />
<Folder Include="OnlineSubsystemPC\" />
<Folder Include="OnlineSubsystemPC\Classes\" />
<Folder Include="UnrealEd\" />
<Folder Include="UnrealEd\Classes\" />
<Folder Include="UTEditor\" />
<Folder Include="UTEditor\Classes\" />
<Folder Include="UTGameContent\" />
<Folder Include="UTGameContent\Classes\" />
<Folder Include="UTGame\" />
<Folder Include="UTGame\Classes\" />
</ItemGroup>

Good luck!

steph
01-21-2010, 12:21 PM
Wildicv, Thanx for master guide and your video tutorials. Appreciate the effort u put, to give us non programmer a little bit of light in the darkness of setting up UDK and Unscript.
Though i have few questions i would like to be answered.
1=>Do i need to use MS VisualStudio + Nfringe or i can end up with ConText + Unreal highliter cause i am not a student now (with 36 years in my butt:D) and cant spend extra money in such tool for now.
Are u using these just to have better integration with your projects and to easily track changes in your code? What would be better solution except Context+highlighter.I do pass tutorial from Toltecstudios.com allready.
2=>I am really eager to learn programming so what would be your advice to setup better base in understanding Unscript? to learn C,C++ or C#?
Many books are already available to me so any advice on that issue would be most appreciated.
3=>Probably most important question for me as an artist (while i am not engineer officer on ships) is: can i design and build my levels independently of learning scripting and later integrate those levels in game? I dont want my capabilities go sink in dark ages because of time effort i attend to invest learning programming!
Anyway keep up and i hope i will see more tuts from u on this site!
Cheers!

I'm hoping that Wildicv will not mind if I make a side comment with my opinion:

1. VS+NFringe is used because it has an important feature against ConText, intellisense, which is an auto complete feature showing class function parameters, hierarchy, practically it suggests you what you should type next, or what options do you have. In one word, it helps coding faster.
2.I think you should start by read very slowly the UnrealScript reference documentation: http://udn.epicgames.com/Three/UnrealScriptReference.html
after that, when you have the basic knowledge about what a function is, or what a class is or even a variable should be, get right to the Mastering Unreal Technology: Scripting in Unreal Engine 3, which is at the bottom of this link: http://udn.epicgames.com/Three/DevelopmentKitGettingStarted.html
In my opinion, you don't have to spend precious time learning C, C++ or C#, if you don't understand something particular from these books, then just google that and read.
3.I'm not sure, what kind of game are you planning to build, so what kind of level of programming you would need for you project. I hope that you know, that there is a Kismet feature of UDK, which is a visual scripting solution for your game. If you find that these feature does not cover your needs, I think only then you should get involve deeper in UnrealScripting. Anyways, you'll need a story on paper, then all the object, terrains and people has to be modeled, textured, then imported in UDK, lights, shaders, so pretty lot of thinks you have to do, before all the "action" (programming) should occur.
Therefore my suggestion is, go and see Kismet, if it covers your needs, simply create some tests, simulations in kismet with some basic objects like some cubes, then save them separately, follow your plans and simulate as many kismet scripting as you can, from your story, save them so later on, when everything is set up in your level, you just get them and apply to some real actors.

I hope it helped.

wildicv
01-21-2010, 06:30 PM
Hello everyone....I know i have been absent for a long...long..time.. I had other things going on and didn't have time for udk tutorials anymore. Hope you guys understand school,work, etc. I'll be starting up the tutorials again at least one a week. These videos do take a lot of time to make from the recording to the editing and finally publishing so give me some time. Anyways just wanted to say i'm back and kinda disappointed that no one else took on making some scripting tutorials but by the looks of things this forum is full of graphics guys and very few programmers..

Nerdy3.14159265
01-23-2010, 12:30 AM
I've been wondering why there were no more tutorials. I don't really know a lot about coding and haven't been able to find some good tutorials for coding the UDK, so I haven't been able to do much since I can't learn code from reading it.

MagnumAI
01-23-2010, 12:26 PM
@wildicv

I hear you on the graphics vs programmers. At least I know I can get graphics help if I need it, but finding answers to programming questions yields no luck.

wildicv
01-23-2010, 02:09 PM
Yeah ill try my best to get some good tutorials up. But i'm in the same boat all you guys are in. I have nothing to work with i'm basically just finding things and putting them together while hoping for the best. I just got my development environment back up so ill be starting soon. I do have one thing to add. My development environment changed to visual studio 2010 ultimate beta2, along side with notepad++, windows 7, nFringe 2010 , and finally a dual screen setup. So lots to figure out how to record it nicely.

MagnumAI
01-23-2010, 02:14 PM
What? How could anyone program without dual monitors??? I have dual, but setup for Quad...:) I just don't have the mounts for the other two yet.

micahpharoh
01-23-2010, 02:17 PM
and finally a dual screen setup. So lots to figure out how to record it nicely.

Believe me, I've tried it. You're better off just recording one screen. There's no convenient way to record both screens and have it come out nicely.

wildicv
01-23-2010, 02:51 PM
@micahpharoh:
Yeah im realizing this. Ill probably just record off my second screen and leave the first one to other things.

@MagnumAI:
I did it by having two laptops. But now with 3 i didn't wanna have 3 diffrent computers doing different things so i networked them up using synergy *allows me to control them all with one mouse and keyboard*. Then setup a swarm farm on the other two. Then bought a 32 inch monitor. So i have three screens in front of me. I lost a laptop. She over heated and BOOM. Sorry i kinda went off there.

I've also encountered another problem while recording visual studio doesn't like it when i stop the debugging process.. It crashes visual studio. Isn't good but i can cut the crashes out of the videos till i solve the problem.

MagnumAI
01-23-2010, 03:49 PM
Understand. I have two GTX-280's in my system so I can run it all on one computer.

I haven't tried VS2010 yet, but may download the beta and try it.

bioflex
01-23-2010, 03:52 PM
@ Wldicv......thanks for all the unreal scripts tuts u made....i was really starting to feel about about learning c++ just cos unreal script was different and then u came up with the tuts and i am really gratefull i learnt c++ u know cos things have started making sense to me now.....i would really be grateful if you could finish with your tutorials on some of the new key words in unreal script and it you could make other tuts that deals with making new classes or extending unreal's classes for my own game.........once again thanks for all ur help.........

wildicv
01-24-2010, 04:23 AM
Has promised here is the next tutorial in the series. In this one i cover looping.

http://www.youtube.com/watch?v=lrVw8u_zT1U

Few notes. I did this really late at night so excuse the few times i backspace a bit. Also I don't know if its just me but the audio seems to be ahead of the video by just a smidgen.. or maybe i was talking and my reaction time was really bad.

Either way enjoy.

Spwee1494
02-02-2010, 04:46 PM
i don't have the arrow next to the open button. Any current fix for this?

DaemonXR
02-03-2010, 03:52 PM
Any chance this one will be downloadable like the rest of tutorials you made wildicv?? i kinda like them on my hard drive rather than on net:D

Sainoob
02-09-2010, 09:39 PM
Someone please answer my question:

In the log it always says WARNING: PATHS MAY BE INVALID
and when I close the window it says "C:\UDK\UDK-2010-01\UTGame\Config\UTEngine.ini


This file has been modified outside of the source editor.
Do you want to reload it?"

Why is this happening??

gausswerks
04-26-2010, 01:55 PM
Just what I was looking for, thank you for taking the no doubt considerable amount of time it takes to put these videos together.

Danthe57
04-27-2010, 01:05 AM
Thank you so much for this. It has helped me immensely, and that is after only one vid

DJMidknight
04-27-2010, 06:32 AM
anyone have the log not staying open while debugging?

Sihnu
06-03-2010, 07:38 AM
Hi there, I was having the exact same problem, which I just overcome.

When you go into your "C:\UDK\UDK-2009-11-2\Development\Src\MyGame\" folder is the "Classes" folder in there, and not within another folder called "MyGame"?

If so just cut and paste the "Classes" folder into the "C:\UDK\UDK-2009-11-2\Development\Src\MyGame\" directory and all should work fine.

The problem is that UDK is looking for the MyGameInfo.uc at "C:\UDK\UDK-2009-11-2\Development\Src\MyGame\Classes\MyGameInfo.uc" and is not able to find it.

If this is not your problem I am sorry this is of no help, but hopefully it will help someone!

Thanks mate, this solved my problem! :)

thedawnbreaker
07-07-2010, 03:09 AM
I keep getting stuck on the tutorial series at the part where I am supposed to build my script file. I am using the June 2010 UDK Beta, so I understand that some of the steps are different. I used DefaultEngineUDK.ini to locate ModEditPackages within the UDKGame/Config folder. Once I was done and I hit "Build Solution", this is the output message I got:

------ Build started: Project: MyGame, Configuration: Debug Win32 ------
Output file: obj\Win32\Debug\MyGame.ucproj.UnrealScriptGenerate dFileListAbsolute.txt
C:\Program Files\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The specified UCC executable is a stub. Using the one at C:\UDK\UDK-2010-06\Binaries\Win32\UDK.exe instead.
C:\Program Files\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\MyGameInfo.uc' is not located in a folder recognized by the script compiler.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

I'm not certain what I am doing wrong. Can someone please help me?

bumd197
07-24-2010, 07:39 PM
I'm getting the same error... Any help please?

Blade[UG]
07-25-2010, 12:15 AM
The first warning tells you exactly how to fix it. The second warning is irrelevant.

bumd197
07-25-2010, 11:10 AM
Yea, worked !. It's compiled my script to directory. I just changed UDK.exe path to win32\udk.exe thanks.

apocalypse0000
09-23-2010, 05:42 PM
Ok Ive got exactly this problem and I know im doing something really stupid but I cannot figure it out.

------ Rebuild All started: Project: MyGame, Configuration: Debug Win32 ------
Output file: obj\Win32\Debug\MyGame.ucproj.UnrealScriptGenerate dFileListAbsolute.txt
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The specified UCC executable is a stub. Using the one at C:\UDK\UDK-2010-02\Binaries\Win32\UDK.exe instead.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\MyGameInfo.uc' is not located in a folder recognized by the script compiler.
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Can anyone point me in the right direction with this one???? Ive changed all the UDK.exe locations in the "General" and "Debug" Properties to C:\UDK\UDK-2010-02\Binaries\Win32\UDK.exe but I get the same result.

Actually Scratch that - If I change my "UCC Path" in "General" Properties to \Win32\UDK.exe I get this error:

------ Rebuild All started: Project: MyGame, Configuration: Debug Win32 ------
Output file: obj\Win32\Debug\MyGame.ucproj.UnrealScriptGenerate dFileListAbsolute.txt
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\MyGameInfo.uc' is not located in a folder recognized by the script compiler.
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

I just cant get it to copy over to my scripts directory.....very frustrating. Has it something to do with my nFringe installation location???

Kyle_Katarn
09-25-2010, 06:09 AM
I seem to be having trouble with nFringe. I cant get intellisense to work, or syntax highlighting, and it keeps telling me that my evaluation is up... why is that? I thought it was a free plugin?

Edit: I fixed it, it apparently had me set as a Commercial License, not a free one lol. All working fine now.

Edit2: Okay, this is weird. I set everything up correctly, even changing the UCC path and Game exe to the UDK.exe in Win32, and like others, I'm getting warnings like so:


------ Build started: Project: CloneWarsMod, Configuration: Debug Win32 ------
Output file: obj\Win32\Debug\CloneWarsMod.ucproj.UnrealScriptGe neratedFileListAbsolute.txt
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\CloneWarsInfo.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTAmmo_DC_15A_Blaster.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTAttachment_DC_15A_Blaster.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTProj_BlasterBolt.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTProj_HailfireBolt.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTVehicleFactory_HailfireDroid.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTVehicleHailfireDroidWheel.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTVehicle_HailfireDroid.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTVehicle_HailfireDroid_Content.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTVWeap_HailfireDroidMissileLauncher.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTVWeap_HailfireDroidTurret.uc' is not located in a folder recognized by the script compiler.
C:\Program Files (x86)\MSBuild\PixelMine\UnrealScript.targets(0,0): warning : The script file 'Classes\UTWeap_DC_15A_Blaster.uc' is not located in a folder recognized by the script compiler.
Done building project "CloneWarsMod.ucproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========


But as you can see, where it works for others, it fails for me. Anything I am doing wrong? I did do some things differently. I just made a solution file for an existing project so instead of making a new folder I simply went to my existing folder and selected "include in project". Surely that cant be whats stuffing me up?

Edit3: Okay, it turns out I had edited the wrong ini file. Problem solved

Amin_it
09-29-2010, 10:16 AM
hello , i cant download nfringe
can you email it's setup for me.
my email = masojoudi@gmail.com

fatihG_
11-06-2010, 03:35 PM
Hey,

I started following the tutorials on Youtube. I started with the Hourences tutorials and am at part 2 right now. I'm at the part where I should choose "UIscene" in the 'New' window in the Content Browser.

I cant seem the find the UIscene listed.. I noticed you were using a 2009 something version.. Has this changed since then?

If so does anyone know a more up to date tutorial series that cover unrealscript?
I'm a noob at programming but want to learn.

Thanks.

Blade[UG]
11-06-2010, 04:19 PM
Ignore anything thath as to do with UIScene, it was replaced with Scaleform . Go hit the Scaleform forum right here, and there's tons of information about it.

classic1144
12-12-2010, 08:39 AM
in visual studio in the build menu in the MyGame properties there is no option to manually set UCC output directory

OakWind
12-13-2010, 02:52 AM
in visual studio in the build menu in the MyGame properties there is no option to manually set UCC output directory

Then it will save them in the right place automatically (UDKGame/Script).

AllOrNothing
01-04-2011, 12:26 PM
Hey Guys i'm on setting UpBuild Environment tutorial and at the bit where you right click "MyGame" (in my case iv called it Matthew) properties then go to build i DO NOT have script out put section.

I have install nFringe and have Vs 2008 pro

Thanks

matttm
02-27-2011, 12:40 PM
Thanks LOT masn

ustolemygmrtag
05-22-2011, 01:05 AM
Will this work for the Mobile Editor too? What changes to the steps will I have to make?

mrpostiga
05-22-2011, 09:03 PM
thanx for this.

Chathura
07-14-2011, 02:54 AM
Init: Version: 5860
Init: Epic Internal: 0
Init: Compiled (32-bit): Nov 12 2009 14:51:59
Init: Command line: -full -DEFENGINEINI=..\..\UTGame\Config\DefaultEngineUDK. ini
Init: Base directory: D:\UDK\Binaries\Win32\
Init: Character set: Unicode
Log: Executing Class UnrealEd.MakeCommandlet
--------------------Core - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\Core.u'
--------------------Engine - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\Engine. u'
--------------------GameFramework - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\GameFra mework.u'
--------------------UnrealEd - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UnrealE d.u'
--------------------UnrealScriptTest - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UnrealS criptTest.u'
--------------------IpDrv - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\IpDrv.u '
--------------------OnlineSubsystemPC - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\OnlineS ubsystemPC.u'
--------------------UTGame - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTGame. u'
--------------------UTEditor - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTEdito r.u'
--------------------UTGameContent - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTGameC ontent.u'

Success - 0 error(s), 0 warning(s)
Execution of commandlet took: 19.92 seconds

MyGame is not been compile why?

I did that tutorial says add +EditPackages=MyGame to DefaultEngine.ini


And i compile again i got error

Init: Version: 5860
Init: Epic Internal: 0
Init: Compiled (32-bit): Nov 12 2009 14:51:59
Init: Command line: -full -DEFENGINEINI=..\..\UTGame\Config\DefaultEngineUDK. ini
Init: Base directory: D:\UDK\Binaries\Win32\
Init: Character set: Unicode
Log: Executing Class UnrealEd.MakeCommandlet
--------------------Core - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\Core.u'
--------------------Engine - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\Engine. u'
--------------------GameFramework - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\GameFra mework.u'
--------------------UnrealEd - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UnrealE d.u'
--------------------UnrealScriptTest - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UnrealS criptTest.u'
--------------------IpDrv - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\IpDrv.u '
--------------------OnlineSubsystemPC - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\OnlineS ubsystemPC.u'
--------------------UTGame - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTGame. u'
--------------------UTEditor - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTEdito r.u'
--------------------UTGameContent - Release--------------------
Analyzing...
Scripts successfully compiled - saving package 'D:\UDK\Binaries\Win32\..\..\UTGame\Script\UTGameC ontent.u'
--------------------MyGame - Release--------------------
Analyzing...
D:\UDK\Binaries\..\Development\Src\MyGame\Classes\ MyPawn.uc : Error, Bad class definition ''/'UTPawn'/715/715
Compile aborted due to errors.

Warning/Error Summary
---------------------
D:\UDK\Binaries\..\Development\Src\MyGame\Classes\ MyPawn.uc : Error, Bad class definition ''/'UTPawn'/715/715

Failure - 1 error(s), 0 warning(s)
Execution of commandlet took: 19.87 seconds



The result is that if i delete UTEngine.ini then compile it i got error, if i don't delete it then compile pass, but MyGame is not compiled. MyGame.u file is never generated.

I am getting sick on this

what a odd UDK i think UDK is not suitable for some pc

i got this problem.. and recovered from it...
i think its some problem which we cant see with normal editors but maybe with a hex editor... ( i think the problem is with some characters in the file header or something , in linux u can try 'cat' command to view the whole binary data )
anyway here is what i did..,

1.) Copy UDKGame ( or any other original source file that comes with UDK ) to your source folder.
2.) Rename it ( don't copy-paste , type it ) with your class name.
3.) open the file in any editor u like ( i use ConText and Notepad++ ) and type in your code.

and it works...

i hope this helps you friend..
cheers... :)

p.s.
i recomment using Notepad++ for viewing the Encoding type, it also has a highlighter for UnrealScript.. its free.. just google for Notepad++

Mrblbshrtz
08-16-2011, 03:15 PM
The newer nFringe doesn't let me manually set a UCC output directory- and so (following the rest of the tutorial), it still saves the mygame folder to "Documents\Visual Studio 2008\Projects"
What am i doing wrong?

Blade[UG]
08-16-2011, 09:29 PM
Mrblbshrtz: http://wiki.pixelminegames.com/index.php?title=Tools:nFringe:UnrealScript:UdkProj ects

Mrblbshrtz
08-19-2011, 11:45 AM
;28751381']Mrblbshrtz: http://wiki.pixelminegames.com/index.php?title=Tools:nFringe:UnrealScript:UdkProj ects

I used that link, and then tried switching back to wildicvs tutorial, and the unrealsciprt still doesnt get built in the right directory (UDKGame\Scripts)

EDIT: Now it's working

lagidigu
08-21-2011, 09:21 AM
Hey, thanks for that series, looking forward to it!
I tried to download a copy of microsoft visual c++ express, but I'm not sure if its just a trial version, or a free, open source version where you could theoretically use the code commercially? I used this link:

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

Is that the right one?^^

Kradion
08-22-2011, 07:00 AM
If you havent registered the product then you have an evaluation copy. In order to register you should open microsoft visual c++ and go to the help menu and push the register product button. Registration is free.

Amala
05-05-2012, 04:04 AM
Hai,

Am new to this site and udk, i am not having idea about this unreal scripting am working on creating ui scenes for this am using canvas could u pls tell me how to write scripting for canvas for creating ui scens i.e., menues and buttons and give me some sample source code.

Thaks you