Results 1 to 4 of 4

Function Oninit problem

  1. #1

    Function Oninit problem

    Alrighty, after adding some more custom sobgroups to my level file I started adjusting the mission lua and I keep getting this error in the HW2.log after the game crashes after level-load.

    parameter: <statement> expected;
    last token read: `)' at line 104 in string ""
    SCAR ERROR: could not find OnInit function in rule file

    Anyone have any idea how to fix this?

  2. #2
    sorry i would love to help but i never messed with sob groups or adding units to levels etc. In any case the problem could be as simple as a misplaced comma or an extra one or whatever etc.

  3. #3
    Member Dim@'s Avatar
    Join Date
    Jul 2007
    Location
    Battlecruiser complete
    Do you have ... an OnInit() function in your rule file?
    I can't help any more if you don't post your files though (and their paths).
    Destroying things is easy.
    Creating things is hard.
    Creating things in order to watch them explode is just plain fun.

    Explosion Damage Script, Scripting Tutorial

  4. #4
    Yeah, I had one but I found out it just means there is an error in my oninit function. Got it working now! Well sort of...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •