Comments (6)
Could you elaborate further on the problem?
It is correct that the variables guild
and enemyGuild
does not return the guild id.
They are returning the guild objects/metatables. This seems to be the intended behavior.
The guild id's are passed through the function params and is called guildId
and enemyGuildId
from znoteaac.
guildId
and enemyGuildId
are correctly arriving at the local function sendWarStatus
, however when passing through the Guild(variable)
it is becoming null
from znoteaac.
Replace:
ZnoteAAC/Lua/TFS_10/revscriptsys/playerdeath.lua
Lines 5 to 8 in 88a13e6
With:
local guild = Guild(guildId)
local enemyGuild = Guild(enemyGuildId)
if not guild then
print("sendWarStatus: Error: Failed to load guild data from id: ".. guildId)
return
end
if not enemyGuild then
print("sendWarStatus: Error: Failed to load guild data from id: ".. enemyGuildId)
return
end
print("sendWarStatus: Loading guild data: OK")
What messages do you get in console when reproducing this issue?
from znoteaac.
sendWarStatus: Error: Failed to load guild data from id: 2
from znoteaac.
That is very weird, do you have any data associated to guild id 2 in SQL? In the guilds table?
Which server distro are you using, which version?
If there is a bug with initializing a guild through its id, a workaround might be to send the player, and then use player:getGuild()
to retrieve the guild object properly.
from znoteaac.
That is very weird, do you have any data associated to guild id 2 in SQL? In the guilds table?
no
Which server distro are you using, which version?
nekiro tfs 1.4 8.60
I think it's a bug in the distro then, because the variables with guild ids arrive correctly and when passing through Guild(x) it changes.
from znoteaac.
Related Issues (20)
- New shop order type and item count suggestion
- Free Premium Issue with login.php
- [suggestion] Powergamers sql column type HOT 2
- https for shop image HOT 2
- Login php error gesior acc HOT 2
- IPN Unable to record errors to SQL if error exceeds Varchar 255 limit
- Can't connect to newest Canary src
- Regex on Create Character and Name change allows _ in names HOT 2
- Enhancement Outfit Picture on my account
- Redundancy in function EMAIL
- spam in sending emails
- Problem character name with spaces HOT 2
- Error in war invite in guilds.php
- Shop outfits with id>1000 not getting delivered HOT 1
- buy houses, instant purchase might take money from a bidder?
- Http Error 500 after unzipping into /www HOT 4
- paypal is not working HOT 2
- [Request] Converter to ZnoteACC from MyACC HOT 1
- Cache problem?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from znoteaac.