aliens

Author Topic: Another Modding Question  (Read 5198 times)

Offline Cerazor

  • Captain
  • ***
  • Posts: 61
    • View Profile
Another Modding Question
« on: May 30, 2017, 01:52:56 pm »
If i ever had troubles modding this, is this the place to ask for help? I don't want to clutter this place with my own crap.

Uhhh I do also kinda have a problem. I made a quick easy weapon mod to allow Gauss Rifles. But it's giving me crap about syntax and I'm very confused.
« Last Edit: May 30, 2017, 02:16:02 pm by Cerazor »

Offline Cerazor

  • Captain
  • ***
  • Posts: 61
    • View Profile
Re: Another Modding Question
« Reply #1 on: May 30, 2017, 02:18:07 pm »
This is the ruleset I've been trying to fix. The OpenXCOM modding tools say there's syntax errors on lines 48 and 47. Sorry If this is basically a nothing problem.  :(

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9085
    • View Profile
Re: Another Modding Question
« Reply #2 on: May 30, 2017, 02:43:31 pm »
Which "OpenXCOM modding tools" are you referring to?

There are no syntax errors on lines 47 and 48 (I tried your file and it works fine for me).

EDIT: yeah, the error is later (line 65) as Warboy says... I removed everything after line 48 during my test
« Last Edit: May 30, 2017, 04:22:43 pm by Meridian »

Offline Cerazor

  • Captain
  • ***
  • Posts: 61
    • View Profile
Re: Another Modding Question
« Reply #3 on: May 30, 2017, 03:53:59 pm »
Apologies, It's really late so I guess I assumed you'd know which one. This one: https://falkooxc2.pythonanywhere.com/

I tried running my mod as well and it claims I have problems with syntax too. Should I post the entire mod so you can try it?

Here's the error I get.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Another Modding Question
« Reply #4 on: May 30, 2017, 04:07:54 pm »
there's a tab on line 65, you need to use spaces to indent, tab is bad.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Another Modding Question
« Reply #5 on: May 30, 2017, 04:17:26 pm »
Apologies, It's really late so I guess I assumed you'd know which one. This one: https://falkooxc2.pythonanywhere.com/

Just a warning, Falko hasn't updated his tools in a while, which means that you'll get error messages if the ruleset uses features that were implemented recently since it doesn't recognize the code

Offline Cerazor

  • Captain
  • ***
  • Posts: 61
    • View Profile
Re: Another Modding Question
« Reply #6 on: May 30, 2017, 04:26:54 pm »
there's a tab on line 65, you need to use spaces to indent, tab is bad.

Oh, weird. I swear that wasn't there before. Infact I swear I fixed that. I must've just forgot to save it and then got confused. That or I saw another rule file with a gap at the bottom and assumed that was fine.

Just a warning, Falko hasn't updated his tools in a while, which means that you'll get error messages if the ruleset uses features that were implemented recently since it doesn't recognize the code

Ah okay. I'll remember this. Also do what do the XYZ coordinates do for HandOb? I can't seem to find anything to explain what they do. Allot of mods seem to have different ones even with multiple weapons listed.

Anyways, I'll fix everything and tell you if I anything else is wrong.


(EDIT: Errrr, okay. Apparently I forgot to add the music file the Gauss RIfle used in the Gauss Rifle mod.)
« Last Edit: May 30, 2017, 04:31:28 pm by Cerazor »

Offline Cerazor

  • Captain
  • ***
  • Posts: 61
    • View Profile
Re: Another Modding Question
« Reply #7 on: May 30, 2017, 04:53:48 pm »
Errrr, okay when I fire it, it crashes because it can't find sound in Battle.Cat 8067. Weird, I never specified that.

(Here's the error, the log and the updated mod rules)

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9085
    • View Profile
Re: Another Modding Question
« Reply #8 on: May 30, 2017, 05:02:42 pm »
Code: [Select]
    fireSound: 67

Code: [Select]
      57: Resources/GaussRifle/GaussRifle_fire.ogg

Either 67 is wrong or 57 is wrong.

Offline Cerazor

  • Captain
  • ***
  • Posts: 61
    • View Profile
Re: Another Modding Question
« Reply #9 on: May 31, 2017, 06:27:24 am »
D'ow. I'm an idiot. Thanks for the help.