RuneStorm
https://www.runestorm.com/forums/

The Compiler...
https://www.runestorm.com/forums/viewtopic.php?f=69&t=74839
Page 1 of 1

Author:  Dumorah [ Sun Dec 14, 2008 10:49 am ]
Post subject:  The Compiler...

HEre is the error message i have whenever i try compiling BallisticV21 (With new code)

C:\UT2004\Testballisticsv21\Classes\Mut_BallisticDM.uc(11) : Error, Testballisticsv21.Mut_BallisticDM's superclass must be BallisticV21.Mut_BallisticSwap, not Testballisticsv21.Mut_BallisticSwap

Now the problem is that TestballisticsV21 does not exist... grararaarrrrrrr

Does anybody know how to fix this problem? Cus

Author:  OCAdam [ Sun Dec 14, 2008 10:56 am ]
Post subject:  Re: The Compiler...

Just specify the first line of code to be

Mut_BallisticDM Extends BallisticV21.Mut_BallisticSwap

This way the compiler goes and compiles it as a modified version of the original BallisticSwap. If you did changes to the BallisticSwap UC, then you'll have to respeify those changes in the BallisticDM's code. Annoying, but this happens with a few other UC files as well for no real apparent reason.

Author:  Dumorah [ Sun Dec 14, 2008 11:26 am ]
Post subject:  Re: The Compiler...

the first line of code for which class though? and will that be before the declaration of classes or after? Or do i change it too the what you said? like for example this is the first line

class Mut_BallisticDM extends BallisticV21

Author:  OCAdam [ Sun Dec 14, 2008 11:48 am ]
Post subject:  Re: The Compiler...

class Mut_BallisticDM Extends BallisticV21.Mut_BallisticSwap

That should be the first line of actual code for Mut_BallisticDM. Then the compiler should get through at UC file just fine, unless there are errors in the file later on.

Author:  Dumorah [ Sun Dec 14, 2008 10:09 pm ]
Post subject:  Re: The Compiler...

Hmm still sems to have a problem =(

Maybe its not something to do with the code but the compiler instead? Maybe i don't have the packages to compile in the right order? or maybe i'm missing something? HEre is an image of the "Modify Edit PAckages" menu with the red arrow pointing at what i'm talking abotu and the red square the added code.

Like i said i believe its something to do with the compiler and not the code (i've already tried the piece of code with the ; after it and turning the next piece of code into a comment).

[img]
Attachment:
img1.JPG
[/img]

Author:  OCAdam [ Mon Dec 15, 2008 6:20 am ]
Post subject:  Re: The Compiler...

Ah, now THERE's your problem. You've double defined the class. By rules of code, you can only define that line one time. Keep the line in the red box, but delete the one RIGHT below it.

It should work after that.

Author:  Dumorah [ Mon Dec 15, 2008 6:34 pm ]
Post subject:  Re: The Compiler...

i did that and it still deosn't work =,(

I've sent my code out to someone before and apparently it worked for them. THis is why i keep thinking its the compiler, maybe i don't have everything i need in my compiler? Should i post a screen shot of all the compiler windows of the necessities so you can see if i'm missing something?

Author:  OCAdam [ Mon Dec 15, 2008 6:58 pm ]
Post subject:  Re: The Compiler...

Oh wait, I'm a total moron for not catching this sooner. Place test BallisticsV21 BELOW BallisticV21 instead. Then it should work better. Also, place BCorev21 before BallisticV21.

Author:  Dumorah [ Mon Dec 15, 2008 8:50 pm ]
Post subject:  Re: The Compiler...

OK i think the problem has been fixed, and a new problem has been spawned =(

HEre is the compiler readout:

------------------------BallisticV21 - Release------------------------
-------------------------UT2004RPG - Release--------------------------
--------------------------BCoreV21 - Release--------------------------
-----------------------BallisticsV21 - Release------------------------
Analyzing...
Can't find files matching BallisticsV21\Classes\*.uc



History: UMakeCommandlet::Main

Exiting due to error

I think the gods are against me!

Author:  OCAdam [ Tue Dec 16, 2008 6:23 am ]
Post subject:  Re: The Compiler...

You didn't just take the files from the BallisticV21 uc folder and just move them to your new one did you? You are suppose to copy the files over first, not just move them (which leaves a blank folder).

Author:  Dumorah [ Tue Dec 16, 2008 6:24 pm ]
Post subject:  Re: The Compiler...

Well i'm slowly getting there but i found the next mistake and fixed it.... iuf you look at what i copied over there is a BallisticV21 and a BallisticSV21 (The S before the V was capitalized to show the error)... there is no BallisticSV21 folder lol, so i deleted that and it seems to have compiled alot better.. but now a new error lol

------------------------OnslaughtBP - Release-------------------------
-------------------------UT2004RPG - Release--------------------------
--------------------------BCoreV21 - Release--------------------------
------------------------BallisticV21 - Release------------------------
---------------------testBallisticsv21 - Release----------------------
Analyzing...
Parsing BallisticInteraction
Parsing BallisticReplicationInfo
Parsing Mut_Ballistic
Parsing Mut_BallisticArena
Parsing Mut_BallisticArenaDM
Parsing Mut_BallisticMelee
Parsing Mut_BallisticMeleeDM
Parsing Mut_BallisticSwap
Parsing Mut_Loadout
Parsing Mut_Outfitting
Parsing Mut_OutfittingDM
Parsing EliminationPRI
Parsing Mut_BallisticDM
C:\UT2004\testBallisticsv21\Classes\Mut_BallisticDM.uc(11) : Error, testBallisticsv21.Mut_BallisticDM's superclass must be BallisticV21.Mut_BallisticSwap, not testBallisticsv21.Mut_BallisticSwap
Compile aborted due to errors.
Failure - 1 error(s), 0 warning(s)
Shutting down ucc.exe

I'm just about to start working on this lol. Wow i think i have about a million errors or so =X

Author:  Dumorah [ Tue Dec 16, 2008 6:36 pm ]
Post subject:  Re: The Compiler...

Ok i fixed the problem by moving the testBallisticsV21 above the BallisticV21 in the Modify Edit Packages menu. Everything seems to compile till i reach this new problem (which i assume is enar the end). The new problem is...

Compiling BallisticInteraction
Compiling BallisticReplicationInfo
Compiling EliminationPRI
Compiling Mut_Ballistic
C:\UT2004\testBallisticsv21\Classes\Mut_Ballistic.uc(460) : Error, Can't find Class 'BallisticV21.BallisticPawn'
Compile aborted due to errors.
Failure - 1 error(s), 0 warning(s)
Shutting down ucc.exe

Don't give up hope, we are enarly there.. i'm sure of it =D

Author:  Dumorah [ Tue Dec 16, 2008 6:39 pm ]
Post subject:  Re: The Compiler...

Oh yah here is line 459 to line 462 of BallisticV21.Mut_Ballistic

if (PlayerController(Other) != None && (Controller(Other).PawnClass == None || Controller(Other).PawnClass == class'xPawn' || bForceBallisticPawn))
PlayerController(Other).PawnClass = class'BallisticV21.BallisticPawn';
else if (Bot(Other) != None && (Controller(Other).PawnClass == None || Controller(Other).PawnClass == class'xPawn' || bForceBallisticPawn))
Bot(Other).PreviousPawnClass = class'BallisticV21.BallisticPawn';

Author:  OCAdam [ Tue Dec 16, 2008 6:41 pm ]
Post subject:  Re: The Compiler...

You have a reference somewhere within that UC file that did not go back to your own packages, and went to BallisticV21 by accident. Fix this by changing the file you want it to reference to. This is probably what will take the longest to fix, since usually you'll have a few of these scattered around. Most annoying, but also easiest to fix. Lovely...

Edit: Change...

Bot(Other).PreviousPawnClass = class'BallisticV21.BallisticPawn';

To...

Bot(Other).PreviousPawnClass = class'testBallisticsV21.BallisticPawn';

Author:  Dumorah [ Tue Dec 16, 2008 6:44 pm ]
Post subject:  Re: The Compiler...

Well its a good thing that the compiler points to the problematic line of code =D

Author:  zer0 [ Tue Dec 16, 2008 6:45 pm ]
Post subject:  Re: The Compiler...

all these problems have convinced me that I should never do coding...

Author:  Dumorah [ Tue Dec 16, 2008 6:48 pm ]
Post subject:  Re: The Compiler...

I love coding as a hobby, but not as a career, you should see a map a designed for WC3.. i made a random map generator and i'm gonna do the same thing for SCII when it comes out =D

Author:  Dumorah [ Tue Dec 16, 2008 7:05 pm ]
Post subject:  Re: The Compiler...

Hmmm i've made the changes to all the BallisticV21.BallisticPawn that you said but iut still keeps jumping back to line 460 (which is the line posted below wit hthe same error).

PlayerController(Other).PawnClass = class'testBallisticsV21.BallisticPawn';

Author:  OCAdam [ Tue Dec 16, 2008 8:36 pm ]
Post subject:  Re: The Compiler...

Well, revert back to BallisticV21, and place BallisticV21 back above your package (this time, have BallisticV21 actually filled with its normal UC files). Sometimes code loves to take an elephant's crap all on you.

Author:  Dumorah [ Tue Dec 16, 2008 8:54 pm ]
Post subject:  Re: The Compiler...

hmmmm now i went back to the last error >.< What switches should i have checked off when i'm compiling?

Author:  Dumorah [ Tue Dec 16, 2008 9:04 pm ]
Post subject:  Re: The Compiler...

HEres somethign interesting, i commented out the entire line to see how the compiler reacted to that and it still seems to be reading the line for some reason....

Author:  Dumorah [ Sat Dec 20, 2008 8:57 pm ]
Post subject:  Re: The Compiler...

HEy so i'm thinking about uninstalling the compiler and BallisticsV21 (and the Bcore that comes with it) and reinstalling it. Now i can't find an unisntaller so i'll have to delete in manually (which i hate doing) so what files should i delete?

Author:  Captain Xavious [ Sun Dec 21, 2008 11:38 am ]
Post subject:  Re: The Compiler...

Hmm... the compiler should all be contained in its own folder in the System folder.

As for BW, well, there's a lot of files... Look for files with BW, Ballistic, and V21 in them. Your best bet would be to open up the various zip files and see whats in that.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/