rezecib / global-positions Goto Github PK
View Code? Open in Web Editor NEWA mod for Don't Starve Together that adds various ways to find your friends (or spot your enemies).
A mod for Don't Starve Together that adds various ways to find your friends (or spot your enemies).
Comment on steam:
Frank 16 hours ago
'Player Indicators' is broken. Setting it to "Always' allows me (host) to see other players' indicators at unlimited range. However, the unlimited range does not function for other players.
From Steam:
A73 has Don't Starve Together Jul 2 @ 7:59am
Hi there, since the last update (The Curse of Moon Quay) there is a new option on the Settings -> Advanced -> Zoom Cursor Focus
For some reason the mod disables this option permanently, i thought it was a problem with some mods but only this one causes this problem.
There is no crashing or other problem with the mod, thanks for reading.
Previously each world object (there's one per overworld, caves, etc) had a "worldmapexplorer" entity attached to it that stored a "master copy" of the map, containing the sum of all exploration all players had made. This seems to not work properly anymore.
An idea for a new system building off of the cartography system the game now uses:
Possible defense against breaking the assumption of having synced:
max(player_map_version, previous_saved_map_version) + 1
I think this should result in consistent map saving without data loss.
User Kova
on steam posted:
Crashed: http://3.72.240.91/crashlogs/2022_06_03__01_36_15.txt
From the logs it's pretty clear that when Crow Kids add fuel to fire, they pass in nil, as seen in the ADDFUEL
action:
ACTIONS.ADDFUEL.fn = function(act)
if act.doer.components.inventory and act.invobject then
local fuel = act.doer.components.inventory:RemoveItem(act.invobject)
if fuel then
if act.target.components.fueled and act.target.components.fueled:TakeFuelItem(fuel, act.doer) then
return true
else
--print("False")
act.doer.components.inventory:GiveItem(fuel)
end
end
elseif act.doer.components.fueler then
if act.target.components.fueled and act.target.components.fueled:TakeFuelItem(nil, act.doer) then
return true
end
end
end
In my code here, we check if the fuel is charcoal, but we don't have a nil/table check for the item itself, because previously it was assumed there would always be an item.
I should add a simple check to see if it's a table before checking for charcoal.
From Steam:
gimpycoder has Don't Starve Together 5 hours ago
The following crash happens when I try to view map and zoom on mouse wheel.
[00:03:19]: [string "scripts/widgets/mapwidget.lua"]:57: calling 'Zoom' on bad self (number expected, got table)
LUA ERROR stack traceback:
=[C]:-1 in (method) Zoom (C) <-1--1>
scripts/widgets/mapwidget.lua:57 in (global) MapWidget_OnZoomOut_base (Lua) <55-61>
../mods/workshop-345692228/modmain.lua:146 in (upvalue) OldOnZoomOut (Lua) <145-151>
../mods/workshop-378160973/modmain.lua:748 in (upvalue) oldOnZoomOut (Lua) <746-753>
../mods/workshop-821143467/modmain.lua:89 in (method) OnZoomOut (Lua) <87-91>
scripts/screens/mapscreen.lua:101 in (method) DoZoomOut (Lua) <98-105>
scripts/screens/mapscreen.lua:230 in (global) MapScreen_OnControl_base (Lua) <211-235>
../mods/workshop-345692228/modmain.lua:123 in () ? (Lua) <122-130>
=(tail call):-1 in () (tail) <-1--1>
scripts/frontend.lua:390 in (method) OnControl (Lua) <374-438>
scripts/input.lua:165 in (method) OnControl (Lua) <162-169>
scripts/input.lua:422 in () ? (Lua) <421-423>
"there is a weird conflict with "waypoint mod" ... if Waypoint on, I cannot use the "pings" option here from your mod. Is there a way to fix this conflict? Or, could u include custom markers like waypoint does, so we can have the waypoint functionality in your mod? I really like custom markers for individual use to mark important resources or things like suspicious statues, rabbits, boofs, etc"
From Steam comments:
There is bug :
Don't Starve Together/mods/workshop-378160973/scripts/components/globalposition.lua
linenum 105
pos.portraitdirty:push()
pos is nil when user close share trigger RemoveServerEntity
but timer in line: 102 self.inst:DoTaskInTime(1, function()
did not cancel
the inited code trigger PushPortraitDirty()
then cause server crash
It happems many timeslog:
[19:34:08]: [string "../mods/workshop-378160973/scripts/componen..."]:105: attempt to index local 'pos' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-378160973/scripts/components/globalposition.lua:105 in (field) fn (Lua) <102-107>
scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
scripts/update.lua:180 in () ? (Lua) <159-238>[19:34:08]: Warning: Widget:SetFocusFromChild is h
PLayer Indicators appear only on Host.
Map Sharing works good.
A reasonable ratelimit would be one ping per half-second per player (I can't really see legit use-cases for higher rates), with an overall limit of 100 pings (to avoid lagging the server with pings).
FreyaMaluk reports on Steam:
hi :) .. sometimes there is a bug showing a copy of other section of the map on another area .. like mirrowing.. happens only with this mod enabled...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.