Problem with starting trace back

Hi I wanna use a plugin but I have some problem with starting trace back. It has no problem with stopping it but when it comes to start it again it comes with some problems. I have limited knowledge about python I just want it to start back with trace of party leader.

error text is: Python Error: <built-in function start_trace .> returned a result with an error set

from phBot import *
from threading import Timer
from time import sleep
import struct
import json
import os

pName = 'sphinix' 

def handle_joymax(opcode, data):
  if opcode == 0xB070 and get_status() == 'tracing':
    if data[0] == 1 and data[1] == 0x00 and data[3] == 0x9D and data[4] == 0x7A :
      stop_trace()  # Pharaoh tomb (Beginner)
      Timer(16.0, start_trace()).start()
  if opcode == 0xB070 and get_status() == 'tracing':
    if data[0] == 1 and data[1] == 0x00 and data[3] == 0xA4 and data[4] == 0x7A :
      stop_trace() # Pharaoh tomb (Intermediate)
      Timer(21.0,start_trace()).start()
  if opcode == 0xB070 and get_status() == 'tracing':
    if data[0] == 1 and data[1] == 0x00 and data[3] == 0xAB and data[4] == 0x7A :
      stop_trace() # Pharaoh tomb (Advanced)
      Timer(26.0,start_trace()).start()
  return True
log(''+pName+' loaded.')

Your call to start_trace is missing the player name.

oh yes I manage 4 different party so I want it to trace to the party master how can I do it

I created (took from xControl) gui to add leaders. It does create config file and adds the leader but I can’t integrate it with plugin. start_trace(the leader it added to the config) how can I handle it

name ‘players’ is not defined
the code is players = QtBind.getItems(gui,lstLeaders)

@Ryan just one more problem to go help pls

i think youre looking for something like this.

def GetPartyMaster():
	pt = get_party()
	if pt:
		for key, char in pt.items():
			return char['name']
MasterName = GetPartyMaster()
Timer(16.0, start_trace, (MasterName)).start()
3 Likes

yes as i said I have limited knowledge about python so that’s what I’m looking for tysm