Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Error, Bad class definition 'wanderPC;/'''46/46

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error, Bad class definition 'wanderPC;/'''46/46



    I get this error when trying to compile scripts into the UDK. The class, is as follows.


    "
    class WanderPC;

    function InitMutator
    {
    }
    "

    I've tried everything, but nothing seems to work. Any idea what's going on?

    As well, I'd like to extend my classes from the base scripts of the UDK (actor, pawn, controller, weapon, object, etc...) but I have no idea how to do so. Any ideas?

  • #2
    You have to extend from another class. It can be any other existing class, but Object is the absolute base class all other gameplay classes must extend from.

    Example:
    [CODE]class WanderPC extends PlayerController;[CODE]

    Comment


    • #3
      The problem still persists, though I did change my code.


      It is now,

      [CODE]

      class WanderPC extends object;

      function InitMutator
      {
      }

      defaultproperties

      {
      }
      [CODE]

      Is there anything else that may have happened that could cause this, sir? As well, should I change code here?



      Or here?

      Comment


      • #4
        Lol, the uc file must be in the classes folder.

        Comment


        • #5
          And you don't place packages in the source folder, they go in the content folder.

          Comment


          • #6
            This will get you rolling: http://udn.epicgames.com/Three/BasicGameQuickStart.html

            Comment

            Working...
            X