Lua Error: "No Error." (cant open zone.lua)

Have a really dumb question? Ask it here to get help from the experts (or those with too much time on their hands)

Moderator: Moderator

Post Reply
Message
Author
xnd
Archmage
Posts: 307
Joined: Sat Mar 21, 2015 7:33 pm

Lua Error: "No Error." (cant open zone.lua)

#1 Post by xnd »

this error, that says "no error", happened when i cast the spell while within range of a target and it tried to activate the zone:


[LOG] Fgtgtfgfd activates Sandworm Lair.
[SOUND] loading from /data/sound/talents/flame.ogg :=: unknown file
--[ i just left this as it was but seems to not exist. removing it does not fix this error though.]
Loading savefile /save/fgtgtfgfd/
Lua Error: /engine/Zone.lua:737: cannot open /data/zones/sandworm_lair_spell/zone.lua: No error
At [C]:-1
At [C]:-1 error
At /engine/Zone.lua:737 load
At /engine/Zone.lua:113 init
At /engine/class.lua:104 new
At /data-Chrono_Xorn/talents/Chrono_Xorn.lua:1436
At /engine/Game.lua:290 onTickEndExecute
At /engine/Game.lua:281 tick
At /engine/GameEnergyBased.lua:58 tick
At /engine/GameTurnBased.lua:46 tick
At /mod/class/Game.lua:1255
---------------- Stack Dump ----------------
--------------- Stack Dump Finished ---------------


i simply took the fearscape spell and its zone which is a spell zone version of demon zone, and i switched it to sandworm lair stuff, and this is the zone.lua:


return {
name = "Sandworm Lair",
level_range = {1, 100},
level_scheme = "player",
max_level = 1,
actor_adjust_level = function(zone, level, e) return level.source_zone.base_level + e:getRankLevelAdjust() + level.source_level.level-1 + rng.range(-1,2) end,
width = 12, height = 12,
-- all_remembered = true,
all_lited = true,
no_autoexplore = true,
no_worldport = true,
is_sandworm_lair = true,
no_planechange = true,
ambient_music = "Straight Into Ambush.ogg",
generator = {
map = {
class = "engine.generator.map.Forest",
zoom = 3,
sqrt_percent = 45,
noise = "fbm_perlin",
floor = "SANDWALL",
wall = "SANDWALL",
up = "SANDWALL",
down = "SANDWALL",
},
},
}


which is located in
\tome-Chrono_Xorn\data\zones\sandworm_lair_spell



here is the talent:

http://pastebin.com/y6gFdv2J

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Lua Error: "No Error." (cant open zone.lua)

#2 Post by HousePet »

You haven't told it to look in the addons files for the zone.

local zone = mod.class.Zone.new("Chrono_Xorn+sandworm_lair_spell")
My feedback meter decays into coding. Give me feedback and I make mods.

mikekchar
Halfling
Posts: 95
Joined: Fri Nov 21, 2014 3:55 am

Re: Lua Error: "No Error." (cant open zone.lua)

#3 Post by mikekchar »

Sorry to be a pain, but is it possible to post these kinds of questions to the development section? My interpretation of the way it is structured is that Dumb Questions is about Dumb Questions for game play. There are no Dumb Questions for development ;-)

xnd
Archmage
Posts: 307
Joined: Sat Mar 21, 2015 7:33 pm

Re: Lua Error: "No Error." (cant open zone.lua)

#4 Post by xnd »

but im not developing the game, just an addon, and my questions really are dumb since i dont know how to code, and when i posted elsewhere, like in addons, they got no responses.

--

thanks housepet, but it never stops trying to load the zone but no error in the log:


[PROFILE] Thread connecting to profiles.te4.org on ports 2257 2258
[LOG] Nununujnn activates Sandworm Lair.
Loading savefile /save/nununujnn/
Loading entities file from file /data-Chrono_Xorn/zones/sandworm_lair_spell/npcs.lua
Loading entities file from memory /data/general/npcs/sandworm.lua
Loading entities file from file /data-Chrono_Xorn/zones/sandworm_lair_spell/grids.lua
Loading entities file from memory /data/general/grids/basic.lua
Loading entities file from memory /data/general/grids/sand.lua
Loading entities file from file /data-Chrono_Xorn/zones/sandworm_lair_spell/objects.lua
Loading entities file from memory /data/general/objects/objects.lua
Loading entities file from memory /data/general/objects/money.lua
Loading entities file from memory /data/general/objects/gem.lua
Loading entities file from memory /data/general/objects/lites.lua
Loading entities file from memory /data/general/objects/potions.lua
Loading entities file from memory /data/general/objects/scrolls.lua
Loading entities file from memory /data/general/objects/rods.lua
Loading entities file from memory /data/general/objects/wands.lua
Loading entities file from memory /data/general/objects/totems.lua
Loading entities file from memory /data/general/objects/torques.lua
Loading entities file from memory /data/general/objects/digger.lua
Loading entities file from memory /data/general/objects/misc-tools.lua
Loading entities file from memory /data/general/objects/jewelry.lua
Loading entities file from memory /data/general/objects/staves.lua
Loading entities file from memory /data/general/objects/mindstars.lua
Loading entities file from memory /data/general/objects/knifes.lua
Loading entities file from memory /data/general/objects/whips.lua
Loading entities file from memory /data/general/objects/swords.lua
Loading entities file from memory /data/general/objects/2hswords.lua
Loading entities file from memory /data/general/objects/maces.lua
Loading entities file from memory /data/general/objects/2hmaces.lua
Loading entities file from memory /data/general/objects/axes.lua
Loading entities file from memory /data/general/objects/2haxes.lua
Loading entities file from memory /data/general/objects/2htridents.lua
Loading entities file from memory /data/general/objects/bows.lua
Loading entities file from memory /data/general/objects/slings.lua
Loading entities file from memory /data/general/objects/shields.lua
Loading entities file from memory /data/general/objects/cloth-armors.lua
Loading entities file from memory /data/general/objects/light-armors.lua
Loading entities file from memory /data/general/objects/heavy-armors.lua
Loading entities file from memory /data/general/objects/massive-armors.lua
Loading entities file from memory /data/general/objects/leather-caps.lua
Loading entities file from memory /data/general/objects/helms.lua
Loading entities file from memory /data/general/objects/wizard-hat.lua
Loading entities file from memory /data/general/objects/leather-boots.lua
Loading entities file from memory /data/general/objects/heavy-boots.lua
Loading entities file from memory /data/general/objects/gloves.lua
Loading entities file from memory /data/general/objects/gauntlets.lua
Loading entities file from memory /data/general/objects/cloak.lua
Loading entities file from memory /data/general/objects/leather-belt.lua
Loading entities file from memory /data/general/objects/world-artifacts.lua
Importing Betitha the voratun mail armour into world artifacts
Importing voratun battleaxe 'Belolrabeth' into world artifacts
Importing steel ring 'Blindhunt' into world artifacts
Importing Bregifang into world artifacts
Importing cashmere cloak 'Tularim' into world artifacts
Importing Blastvenom the reinforced leather sling into world artifacts
Importing dragonbone longbow 'Glitterglamour' into world artifacts
Importing Ivibredherin into world artifacts
Importing Duathelpower into world artifacts
Importing Kugaregolen the thorny mindstar into world artifacts
Importing Kilnblast the dwarven-steel waraxe into world artifacts
Importing Delydin the Dazzleblack into world artifacts
Importing Airwake the pair of hardened leather boots into world artifacts
Importing stralite mail armour 'Goruitir' into world artifacts
Importing stralite dagger 'Layiritha' into world artifacts
Importing drakeskin leather gloves 'Turodan' into world artifacts
Importing Khelulathaldil into world artifacts
Importing Arata into world artifacts
Importing Deepswing into world artifacts
Importing Beloratorain into world artifacts
Importing Cyrobeth into world artifacts
Importing Ce'Natta the Stokewrither into world artifacts
Importing elven-silk robe 'Bregifang' into world artifacts
Importing hardened leather gloves 'Adudhemina' into world artifacts
Importing Cloudstone the stralite battleaxe into world artifacts
Importing Infernodredge the voratun gauntlets into world artifacts
Importing Eilinowe into world artifacts
Importing yew longbow 'Nerith' into world artifacts
Importing Lisowyn into world artifacts
Importing stralite waraxe 'Salomikira' into world artifacts
Importing Earthreek the elven-silk robe into world artifacts
Importing Xerynn into world artifacts
Importing Belilrada the living mindstar into world artifacts
Importing Loryroddalathad into world artifacts
Importing pair of dwarven-steel boots 'Ashpierce' into world artifacts
Importing Xeruseth the Skyraze into world artifacts
Importing Toxinsear the cashmere robe into world artifacts
Importing drakeskin leather cap 'Sewerfoe' into world artifacts
Importing dwarven-steel longsword 'Mucusroar' into world artifacts
Importing stralite longsword 'Umbrarip' into world artifacts
Importing Offaltyphoon into world artifacts
Importing Abysspride the dwarven-steel dagger into world artifacts
Importing cashmere cloak 'Cystbreaker' into world artifacts
Importing Batar the Bleakreek into world artifacts
Importing Shockrace the silk robe into world artifacts
Importing voratun mace 'Polyravea' into world artifacts
Importing ash longbow 'Scorchcut' into world artifacts
Importing Halyhell the Skyspawn into world artifacts
Importing dwarven-steel waraxe 'Elora' into world artifacts
Importing Zubylenn the Foresttitan into world artifacts
Loading entities file from memory /data/general/objects/boss-artifacts.lua
Loading entities file from memory /data/general/objects/quest-artifacts.lua
Loading entities file from memory /data/general/objects/special-artifacts.lua
Loading entities file from memory /data/general/objects/staves.lua
Loading entities file from file /data-Chrono_Xorn/zones/sandworm_lair_spell/traps.lua
Loading entities file from memory /data/general/traps/natural_forest.lua
Initiated zone Sandworm Lair with base_level 1
[ZONE] persisting to persist_last_zones Chrono_Xorn+sandworm_lair_spell
Creating level Chrono_Xorn+sandworm_lair_spell 1
Make wait background texture 257 : 1366x768 (2048, 1024)
C Map size 21:11 :: 231
C Map seens texture: 262 (22x22)
Loading entities file from memory /data/general/objects/egos/lite.lua
Loading entities file from memory /data/general/objects/egos/infusions.lua
Loading entities file from memory /data/general/objects/egos/wands.lua
Loading entities file from memory /data/general/objects/egos/charms.lua
Loading entities file from memory /data/general/objects/egos/wands-powers.lua
Loading entities file from memory /data/general/objects/egos/totems.lua
Loading entities file from memory /data/general/objects/egos/charms.lua
Loading entities file from memory /data/general/objects/egos/totems-powers.lua
Loading entities file from memory /data/general/objects/egos/torques.lua
Loading entities file from memory /data/general/objects/egos/charms.lua
Loading entities file from memory /data/general/objects/egos/torques-powers.lua
Loading entities file from memory /data/general/objects/egos/digger.lua
Loading entities file from memory /data/general/objects/egos/rings.lua
Loading entities file from memory /data/general/objects/egos/amulets.lua
Loading entities file from memory /data/general/objects/egos/staves.lua
Loading entities file from memory /data/general/objects/egos/mindstars.lua
Loading entities file from memory /data/general/objects/egos/weapon.lua
Loading entities file from memory /data/general/objects/egos/bow.lua
Loading entities file from memory /data/general/objects/egos/ranged.lua
Loading entities file from memory /data/general/objects/egos/ammo.lua
Loading entities file from memory /data/general/objects/egos/sling.lua
Loading entities file from memory /data/general/objects/egos/ranged.lua
Loading entities file from memory /data/general/objects/egos/shield.lua
Loading entities file from memory /data/general/objects/egos/robe.lua
Loading entities file from memory /data/general/objects/egos/light-armor.lua
Loading entities file from memory /data/general/objects/egos/armor.lua
Loading entities file from memory /data/general/objects/egos/heavy-armor.lua
Loading entities file from memory /data/general/objects/egos/armor.lua
Loading entities file from memory /data/general/objects/egos/massive-armor.lua
Loading entities file from memory /data/general/objects/egos/armor.lua
Loading entities file from memory /data/general/objects/egos/helm.lua
Loading entities file from memory /data/general/objects/egos/wizard-hat.lua
Loading entities file from memory /data/general/objects/egos/light-boots.lua
Loading entities file from memory /data/general/objects/egos/boots.lua
Loading entities file from memory /data/general/objects/egos/boots.lua
Loading entities file from memory /data/general/objects/egos/gloves.lua
Loading entities file from memory /data/general/objects/egos/cloak.lua
Loading entities file from memory /data/general/objects/egos/belt.lua
End Room: nil
[PROFILE] Thread connecting to profiles.te4.org on ports 2257 2258
[PROFILE] Thread connecting to profiles.te4.org on ports 2257 2258
[PROFILE] Thread connecting to profiles.te4.org on ports 2257 2258
[PROFILE] Thread connecting to profiles.te4.org on ports 2257 2258
[PROFILE] Thread connecting to profiles.te4.org on ports 2257 2258
[PROFILE] Thread connecting to profiles.te4.org on ports 2257 2258
[PROFILE] Thread connecting to profiles.te4.org on ports 2257 2258
--
(wish it would not try to keep connecting…)
--

That’s with the flush log since the other cut off. Have to ctrlaltdel out of game.

What is End Room: nil ?
Is that the error despite no usual lua error stuff?

xnd
Archmage
Posts: 307
Joined: Sat Mar 21, 2015 7:33 pm

Re: Lua Error: "No Error." (cant open zone.lua)

#5 Post by xnd »

i've tried a bunch of times but cant get an error code. the bar for loading the zone just keeps going right then left and back again forever. i see some people in the bugs section have errors like this, but I have no addons right now except this chrono xorn and it looks like they at least get a lua error. without an error, where should I even look for what is doing this?

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Lua Error: "No Error." (cant open zone.lua)

#6 Post by HousePet »

All I can think of is that there was no empty space to place the actors.
My feedback meter decays into coding. Give me feedback and I make mods.

xnd
Archmage
Posts: 307
Joined: Sat Mar 21, 2015 7:33 pm

Re: Lua Error: "No Error." (cant open zone.lua)

#7 Post by xnd »

yet in the sandworm lair, when the walls collapse, we can all be stuck inside them so i thought i should get away with it. well i will see if i can make a space to start.

hm, or maybe it could set a 1 turn walkthroughwalls on the target and self prior to transfer? ill go try something.

what is sqrt_percent = 45, ?

is there a setting for how much % of free space?

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Lua Error: "No Error." (cant open zone.lua)

#8 Post by HousePet »

It could be sqrt_percent
My feedback meter decays into coding. Give me feedback and I make mods.

xnd
Archmage
Posts: 307
Joined: Sat Mar 21, 2015 7:33 pm

Re: Lua Error: "No Error." (cant open zone.lua)

#9 Post by xnd »

i can get in now using a normal floor that doesnt block.

setting that thing to 100 from 45 seemed to make a lot of non-wall space.
setting it down to 1 then .25 still has about half free space.

might just revise the whole concept.
need to be able to get the denizen actors to load too, though... its not cooperating....

xnd
Archmage
Posts: 307
Joined: Sat Mar 21, 2015 7:33 pm

Re: Lua Error: "No Error." (cant open zone.lua)

#10 Post by xnd »

No error messages in log but it wont load any enemies other than the one brought over.

if i copy from other code, such as:

--zone lua has:

actor_adjust_level = function(zone, level, e) return level.source_zone.base_level + e:getRankLevelAdjust() + level.source_level.level-1 + rng.range(-1,2) end,

--and:

actor = {
class = "mod.class.generator.actor.OnSpots",
nb_npc = {20, 30},
filters = { {max_ood=2}, },
nb_spots = 2, on_spot_chance = 100,
--guardian = "TROLL_SHAX",
--guardian_spot = {type="guardian", subtype="guardian"},
},

--and npcs lua has:


--load("/data/general/npcs/all.lua")
load("/data/general/npcs/sandworm.lua", rarity(1))

local Talents = require("engine.interface.ActorTalents")

newEntity{ define_as = "SANDWORM_QUEEN",
--adapted from game code
--allow_infinite_dungeon = true,
type = "vermin", subtype = "sandworm", unique = true,
name = "Sandworm Queen",
display = "w", color=colors.VIOLET,
resolvers.nice_tile{image="invis.png", add_mos = {{image="npc/vermin_sandworm_sandworm_queen.png", display_h=2, display_y=-1}}},
desc = [[Before you stands a queen of the sandworms. Massive and bloated, she slithers toward you, calling for her offspring!]],
killer_message = "and swallowed whole",
level_range = {15, nil}, exp_worth = 2,
rarity = 1,
--ETC rest of monster's code


I tried some other codes with loading specific enemy names and some different things but it ignores it, even tried putting in the talent itself a copy from the anomally that summons time elementals but again no error code, just ignored:

game:onTickEnd(function()
if self:attr("dead") then return end
local oldzone = game.zone
local oldlevel = game.level
-- Remove them before making the new level, this way party members are not removed from the old
if oldlevel:hasEntity(self) then oldlevel:removeEntity(self) end
if oldlevel:hasEntity(target) then oldlevel:removeEntity(target) end
oldlevel.no_remove_entities = true
local zone = mod.class.Zone.new("Chrono_Xorn+sandworm_lair_spell")
--local zone = mod.class.Zone.new("sandworm_lair_spell")
local level = zone:getLevel(game, 1, 0)
oldlevel.no_remove_entities = nil
--level.demonfire_dam = dam
level.plane_owner = self

level:addEntity(self)
level:addEntity(target)

local tg = self:getTalentTarget(t)
local tgts = getAnomalyTargets(self, t, self.x, self.y, "ACTOR", self:getTalentRadius(t))

-- Randomly take targets
for i = 1, rng.avg(3, 6, 3) do
if #tgts <= 0 then break end
local a, id = rng.table(tgts)
table.remove(tgts, id)
-- Find space
local i, j = util.findFreeGrid(a.x, a.y, 5, true, {[Map.ACTOR]=true})
if not i then
return
end
local npcs = mod.class.NPC:loadList{"/data/general/npcs/telugoroth.lua"}
local m = game.zone:makeEntity(game.level, "actor", {base_list=npcs}, nil, true)
if m then
m.exp_worth = 0
game.zone:addEntity(game.level, m, "actor", i, j)
game.level.map:particleEmitter(i, j, 1, "temporal_teleport")
game:playSoundNear({x=i,y=j}, "talents/thunderstorm")
end
end

and some others things tried to get enemies to load, but it just ignores it.

am i supposed to tell it where to find something somewhere? but i'm not getting a nil value error.
i've tried changing rarity from 0 to 100 and changing some other values to no effect and tried with some different monsters.

Herode_
Cornac
Posts: 36
Joined: Fri Mar 27, 2015 12:18 pm

Re: Lua Error: "No Error." (cant open zone.lua)

#11 Post by Herode_ »

Agreed with mikekchar above : these purely technical questions are relative to development. It's not about gameplay or anything else that could concern common players. So obviously, these are not "dumb questions".

And as a common player, I confess that I find this forum becoming difficult to parse as it is cluttered by numerous modding/technicals threads.
It will be much more user friendly to move all this stuff to the appropriate forum.
xnd wrote:but im not developing the game, just an addon, and my questions really are dumb since i dont know how to code, and when i posted elsewhere, like in addons, they got no responses.
BTW, HousePet seems pretty active in the Development sub forums. There's no reason why he would not answer as well in this dedicated place :wink:

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Lua Error: "No Error." (cant open zone.lua)

#12 Post by HousePet »

I think the addons forum would make more sense.

But you can't argue that some of these are dumb questions! :lol: (sorry)
My feedback meter decays into coding. Give me feedback and I make mods.

xnd
Archmage
Posts: 307
Joined: Sat Mar 21, 2015 7:33 pm

Re: Lua Error: "No Error." (cant open zone.lua)

#13 Post by xnd »

you could give more help then. what do you expect when i dont know coding?

no one answered in the addons thread.

maybe instead of insisting on putting people down here, there should be an appropriate section made to enable people to make addons, which is actually part of playing the game.

Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

Re: Lua Error: "No Error." (cant open zone.lua)

#14 Post by Micbran »

you could give more help then. what do you expect when i dont know coding?

no one answered in the addons thread.

maybe instead of insisting on putting people down here, there should be an appropriate section made to enable people to make addons, which is actually part of playing the game.
Most people teach themselves, since examples are available.
A little bit of a starters guide written by yours truly here.

twas Brillig
Wyrmic
Posts: 279
Joined: Sun Nov 30, 2014 9:06 pm

Re: Lua Error: "No Error." (cant open zone.lua)

#15 Post by twas Brillig »

Yeah, honestly the best thing to do from a forum hygiene perspective would be to just make a single thread in the add-ons section for all your questions. It's good to have threads for various common problems since people can (in theory) search them up and find common answers. These are all niche questions about modding, so having your own thread in the modding forum would be helpful to organize them.

Also, just from a readability standpoint, can you try posting code dumps via something like Pastebin? or at least sticking them in

Code: Select all

 tags?

Post Reply