VGOEmulator.net

A Development Project for the Vanguard:Saga of Heroes MMO

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • Portal
  • Project Manager
  • Bug Tracker
  • Server List
  • Wiki
  • Donate
  • Login
  • Register
  • Board index Bugs Content Bugs Content Bugs (Closed)
  • Search

Item click use problems

Closed Content Bugs

Moderators: Moldew, Jakkal, Community Managers

Locked
  • Print view
Advanced search
6 posts • Page 1 of 1
User avatar
elquar
Content Designer
Content Designer
Posts: 604
Joined: Tue Jun 03, 2014 2:07 pm
Item click use problems
  • Quote

Post by elquar » Sat Apr 30, 2016 2:16 pm

Not sure what changed , but i had 2 items scripts not work today. I finally figured out what the problem was and it was in the call back function.

AddItemCallback(item, PC, "CapturedCrawler", timer, target) The "item" was working before but now it is not. I had to changed to actually use the item ID #

and it now looks like this AddItemCallback(1274294, PC, "CapturedCrawler", timer, target.


IN boh my scripts that had stopped working , all the script worked fine till it came to the item callback function then it would fail at that point.
Top

zippyzee
Developer
Developer
Posts: 1240
Joined: Wed Jul 23, 2014 2:11 pm
Re: Item click use problems
  • Quote

Post by zippyzee » Sat Apr 30, 2016 3:22 pm

I had to change the underlying way item lua passes the item to c++ functions. I thought I hit all the underlying uses but missed that one. It's a very simple fix and I'll get it corrected soon.
Top

zippyzee
Developer
Developer
Posts: 1240
Joined: Wed Jul 23, 2014 2:11 pm
Re: Item click use problems
  • Quote

Post by zippyzee » Sat Apr 30, 2016 3:38 pm

I just updated the code on this so it should be fixed soon. Expect plenty of item weirdness coming up as I do another pass through that system.
Top

User avatar
elquar
Content Designer
Content Designer
Posts: 604
Joined: Tue Jun 03, 2014 2:07 pm
Re: Item click use problems
  • Quote

Post by elquar » Sat Apr 30, 2016 6:17 pm

Thank you zippyzee

I can leave the scripts with actual item id # in right and should still work ?
Top

zippyzee
Developer
Developer
Posts: 1240
Joined: Wed Jul 23, 2014 2:11 pm
Re: Item click use problems
  • Quote

Post by zippyzee » Sun May 01, 2016 5:11 am

The script needs to go back to the way it was if you altered it. There should be no need to change any item scripts; this is all handled internally by the code. I tested on some of the IoD scripts and it seems fine.

The reason this had to change is that the item id is not specific enough. A player could have two or more items with the same item id but different characteristics, like charges remaining, durability, etc. With the code changes whatever item is being 'used' or called back will be the actual item and not looked up by item id, which is ambiguous.

This will cause problems in spawn scripts that might want to generate a callback to an item script. The spawn script will need to get a pointer to an actual item to call its script, rather than use the item id. Not a big deal, and we'll cross that bridge if/when we get there.
Top

User avatar
elquar
Content Designer
Content Designer
Posts: 604
Joined: Tue Jun 03, 2014 2:07 pm
Re: Item click use problems
  • Quote

Post by elquar » Sun May 01, 2016 11:47 am

Thanks for clearing that up zippyzee ill change the three scripts back today.
Top


Locked
  • Print view

6 posts • Page 1 of 1

Return to “Content Bugs (Closed)”

Jump to
  • Information
  • ↳   Announcements
  • ↳   Dev Chats
  • ↳   Events
  • Community
  • ↳   General Discussions
  • ↳   VGO Team Help Requests
  • ↳   Introductions
  • ↳   Game Features
  • ↳   Wish List
  • ↳   Off-Topic
  • Support
  • ↳   How-To's
  • ↳   General Support
  • ↳   Windows
  • ↳   Linux
  • Bugs
  • ↳   Server Bugs
  • ↳   Server Bugs (Closed)
  • ↳   Content Bugs
  • ↳   Content Bugs (Closed)
  • ↳   Database Bugs
  • ↳   Tools Bugs
  • Board index
  • All times are UTC-07:00
  • Delete cookies
  • Contact us
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD