hunting the ever elusive programming

Comment History
Tikithehut
Tikithehut - - 2 comments @ Unreal Learning #4: Advanced Weapons (part 2) - Material Switching

So I figured something out! At least in regards to the warnings.

This is specifically for anyone coming across the "unresolved reference" or similar error. This is caused by the package (where your static mesh for the power cube is located) being in a place the compiler/editor does not like. By default these packages seem to like to be created in the unpublished directory. However when compiling, the package needs to be copied over to the UTGame\Published\CookedPC directory.

Once I copied my packages over these warnings vanished when compiling. Good luck all!

Good karma+1 vote
Tikithehut
Tikithehut - - 2 comments @ Unreal Learning #4: Advanced Weapons (part 2) - Material Switching

Hello!

Thanks much for the tutorial, I feel like I'm getting a better grasp on the script. But I am coming up with some issues on this one. Overall it's just not working, I've tried it in published and unpublished.

The script compiles perfectly accept for the two warnings purplerainbo was talking about. But when I go into the game and try the console command "SpawnCube" nothing happens.

Also, when I go to use the weapon replacement mod to set the charge rifle, it's not one of the options available.

I'm also noticing the compiling process doesn't write a ".ini" file for the powercube. I don't know if this is because it's not actually supposed to be a mutator (that was my assumption). But to be on the safe side I went and wrote my own, including a bit in there about recognizing the charge rifle. This didn't work either, although it was funny to watch all the bots run around with instagib rifle models that wouldn't fire.

I'm pretty certain I followed the tutorial to the letter, and am comfortable in both the material editor and generic browser. Was wondering if anyone knew possible directions I might look to go about fixing this. Thanks for taking the time to write these!

p.s. I noticed the end of the charge rifle code has the ("Tutorial4.PowerCube", class'Class'));
Is this supposed to be the same package the cube is located within the Unreal Editor? If so should it be "TutorialStuff" like in part one of this tutorial? I could just be confused

Good karma+1 vote