Can't seem to subclass NW3 weapons

Discussions about Coding and Scripting

Can't seem to subclass NW3 weapons

Postby happy_jack » Sun Dec 18, 2016 3:14 am

Hi all, have been trying to subclass a couple of the NW3 weapons for playing over a lan connection (as I have done in the past with the standard weapons) but keep getting an error message when I attempt to compile the package with umake.

Heres what I’m doing-

Open editor
Select actor browser/file/open package and open NWVulcanVIII.u
Right click Vulcan within the actor browser and select new then name as-

parent – Vulcan
package - my package
name - my Vulcan

click ok and in the class,mypackage.myvulcan window and click export all scripts


open the vulcan.uc file with notepad++portable and copy the default properties then open the myvulcan.uc file and paste the data changing only the pickup ammo count then saving the file.

Now when I drag the mypackage folder to umake I get the following message-


Superclass Vulcan of class MyVulcan not found.

The compiler wasn't able to find the specified superclass Vulcan of your class.
If it's not a typo make sure the package containing the superclass is listed in your projects dependencies.



What am I missing here?
happy_jack
Novice
 
Posts: 6
Joined: Mon Nov 23, 2015 2:14 am

Re: Can't seem to subclass NW3 weapons

Postby Spectra » Sun Dec 18, 2016 6:34 am

NWVulcanVIII.u is dependent on NWCoreVIII.u
Open your UT.ini and search for something called EditPackages.

Then add these lines:
Code: Select all
EditPackages=NWCoreVIII
EditPackages=NWVulcanVIII


Then it should compile properly.
Spectra
Masterful
 
Posts: 539
Joined: Tue Jan 22, 2013 5:23 pm
Location: (X) Unable To Locate....
Personal rank: Nullified!

Re: Can't seem to subclass NW3 weapons

Postby sektor2111 » Sun Dec 18, 2016 10:20 am

If I'm looking well you were saying something about UMAKE.
Inspect "dependencies" at "options" button when your mod seems ready to compile. You need to load all "parent" classes else compiling will not work.
ModCompiling.JPG
ModCompiling.JPG (21.15 KiB) Viewed 455 times
then
Dependencies.JPG
Dependencies.JPG (27.09 KiB) Viewed 455 times
Browse/Load all NWIII classes according to source-code. This is child of that, and that is child of the rest. All these packages parent-child have to be loaded.
User avatar
sektor2111
Godlike
 
Posts: 3768
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Can't seem to subclass NW3 weapons

Postby happy_jack » Sun Dec 18, 2016 1:07 pm

Thanks sektor, that's awesome. Figured it would be something pretty simple. Thanks for taking the time to explain it to me.
happy_jack
Novice
 
Posts: 6
Joined: Mon Nov 23, 2015 2:14 am


Return to Coding, Scripting

Who is online

Users browsing this forum: No registered users and 1 guest