Log in

View Full Version : Problem with scripts after update



delcortez
11-09-2015, 02:29 PM
I tried to load 2 scripts after update and both have similar problems whene are running:

XenoScript Error:
Script: [PS] RP - Sva Mammoth Factory.lua
Line #: 0
Chunk: [PS] RP - Sva Mammoth Factory.lua
Error: 'luaGotoLabel' called with invalid number of arguments [1 supplied, 2 required]!
This is an error with user-input and should not be reported as a bug with XenoBot.


First my Xenobot couldnt update so I had to remove it (first I copied my scripts) and intall it againg. I copied old scripts to new folder and now it doesn't work proper.

delcortez
11-09-2015, 02:58 PM
Now:

15:58 XenoScript Error:
Script: [PS] RP - Sva Mammoth Factory.lua
Error: C:?Users?USER?DOCUME?1?XenoBot?Scripts??_PS_RP?1.L UA: bad constant in precompiled chunk
This is an error with user-input and should not be reported as a bug with XenoBot.

delcortez
11-09-2015, 04:57 PM
Could you post the script, please?
If it is a paid script feel free to PM me instead.

It's not paid script. You can check it here https://www.dropbox.com/s/h6x4j9fptmqz3w6/Svargrond%20-%20Mammoth%20Factory.rar?dl=0. Before update it was ok. I tried to downlaod and include it once again as "clear" script but still it has the same problem.

diplu
11-09-2015, 05:43 PM
So all scripts have been bugged, we need to autors update it?

Lilithwins
11-09-2015, 05:43 PM
18:39 XenoScript Error:
Script: My Script [Dwarf 5] sa depositorom red backpack.lua
Line #: 252
Chunk: C:?Users?home?DOCUME?1?XenoBot?Scripts??MY1337?1.L UA
Error: '(' expected near '.'
This is an error with user-input and should not be reported as a bug with XenoBot.



local function Walker.Goto("Depot")


Whats wrong with my line 252?

Nakuu
11-09-2015, 05:44 PM
18:39 XenoScript Error:
Script: My Script [Dwarf 5] sa depositorom red backpack.lua
Line #: 252
Chunk: C:?Users?home?DOCUME?1?XenoBot?Scripts??MY1337?1.L UA
Error: '(' expected near '.'
This is an error with user-input and should not be reported as a bug with XenoBot.



local function Walker.Goto("Depot")


Whats wrong with my line 252?

Show us whole line (also 1 line before and after would be nice).

Lilithwins
11-09-2015, 05:52 PM
Self.ReachDepot = function (tries)
local tries = tries or 3
setWalkerEnabled(false)
local DepotIDs = {3497, 3498, 3499, 3500}
local DepotPos = {}
for i = 1, #DepotIDs do
local dps = Map.GetUseItems(DepotIDs[i])
for j = 1, #dps do
table.insert(DepotPos, dps[j])
end
end
local function Walker.Goto("Depot")
local pos = Self.Position()
print("Depots found: " .. tostring(#DepotPos))
for i = 1, #DepotPos do
location = DepotPos[i]
Self.UseItemFromGround(location.x, location.y, location.z)
wait(1000, 2000)
if Self.DistanceFromPosition(pos.x, pos.y, pos.z) >= 1 then
wait(5000, 6000)
if Self.DistanceFromPosition(location.x, location.y, location.z) == 1 then
setWalkerEnabled(true)
return true
end
else

DarkstaR
11-09-2015, 06:03 PM
local function Walker.Goto("Depot")

should just be

Walker.Goto("Depot")

Lilithwins
11-09-2015, 06:27 PM
Yea that works but now i get this error

19:26 XenoScript Error:
Script: My Script [Dwarf 5] sa depositorom red backpack.lua
Line #: 281
Chunk: C:?Users?home?DOCUME?1?XenoBot?Scripts??MY1337?1.L UA
Error: '<eof>' expected near 'end'
This is an error with user-input and should not be reported as a bug with XenoBot.

repeat
reachedDP = Walker.Goto("Depot")
if reachedDP then
return true
end
tries = tries - 1
sleep(100)
print("Attempt to reach depot was unsuccessfull. " .. tries .. " tries left.")
until tries <= 0
return false
end

Map.GetUseItems = function (id)
if type(id) == "string" then
id = Item.GetID(id)
end
local pos = Self.Position()
local store = {}
for x = -7, 7 do
for y = -5, 5 do

somewhere here it stops

until tries <= 0
return false
end

Map.GetUseItems = function (id)

Lilithwins
11-09-2015, 06:33 PM
Am getting this one in multiple scripts

DarkstaR
11-09-2015, 06:35 PM
You need to re-write these scripts. They're bad. You have no tabbing, they're using deprecated functions, etc. There's a built-in waypoint to reach depot now, use that instead.

Lilithwins
11-09-2015, 06:37 PM
I understand it now
thanks
DarkstaR btw check on "keshe foundation" last announce about magrav blueprints
youll be interested in it :)

Am working on my own already

artek007
11-09-2015, 07:17 PM
all paid scripts that are encrypted would be useless ?:( also the price of subscription went from 5.75 to 7.95 ;/ its a over 60 % more