project-navigation
Personal tools

Author Topic: New Weapon model fails to start UFO:AI  (Read 6872 times)

Offline Axe

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
New Weapon model fails to start UFO:AI
« on: May 19, 2016, 07:29:36 pm »
The console is giving me this error.

INVSH_GetItemByID: Item "X84assault" not found.

Com_AddObjectLinks: Could not get item 'X84assault' for linking into item 'x84assault_ammo'

I think I've added the correct script to weapons_human, research_list, research, equipment.
I looked for a "How to add your new models into UFO:AI" but I could not find one on the Forum.
Did I miss something ?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: New Weapon model fails to start UFO:AI
« Reply #1 on: May 19, 2016, 09:02:29 pm »
The console is giving me this error.

INVSH_GetItemByID: Item "X84assault" not found.

Com_AddObjectLinks: Could not get item 'X84assault' for linking into item 'x84assault_ammo'

I think I've added the correct script to weapons_human, research_list, research, equipment.
I looked for a "How to add your new models into UFO:AI" but I could not find one on the Forum.
Did I miss something ?

Without seeing the script pack it is hard to tell. Would you mind zipping it and attach?

-geever

Offline Axe

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: New Weapon model fails to start UFO:AI
« Reply #2 on: May 19, 2016, 09:38:40 pm »
Here it is geever.
Thanks.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: New Weapon model fails to start UFO:AI
« Reply #3 on: May 20, 2016, 06:48:36 pm »
It seems to be a typo. You defined x84assault item but the x84assault_ammo refers to X84assault. Note the capital X. Object identifiers are case-sensitive.

-geever

Offline Axe

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: New Weapon model fails to start UFO:AI
« Reply #4 on: May 20, 2016, 07:08:51 pm »
I was wondering if syntax would matter.
I will make the change and see it that fixes the problem.
Thanks geever.

Offline Axe

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: New Weapon model fails to start UFO:AI
« Reply #5 on: May 24, 2016, 04:49:23 pm »
It works. I can produce the X84 and its ammo. It is in the market, but its price is and the ammo price is "0". Console says "item on market with invalid buying price".
Its value in weapons_human.ufo is 1500, ammo is 80.
 I don't get it.  ???

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: New Weapon model fails to start UFO:AI
« Reply #6 on: May 24, 2016, 09:23:44 pm »
Check the ufoconsole.log maybe there is a parsing error before?

-geever

Offline Axe

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Re: New Weapon model fails to start UFO:AI
« Reply #7 on: May 24, 2016, 10:04:48 pm »
parse scripts ----------
2016/05/24 11:48:07 58 script files
2016/05/24 11:48:07 56 ui script files
2016/05/24 11:48:09 Shared Client/Server Info loaded
2016/05/24 11:48:09 ...123 items parsed
2016/05/24 11:48:09 ... 32 damage types parsed
2016/05/24 11:48:09 ... 32 equipment definitions parsed
2016/05/24 11:48:09 ... 10 inventory definitions parsed
2016/05/24 11:48:09 ... 25 team definitions parsed

As well as:

No skin for #0 of 'weapons/x84assault/X84'
No skin for #0 of 'weapons/x84assault/x84assault_clip'
I applied a UV map in Blender... looks like I didn't do it right. I need to read more on the process.