the player position bug got worse

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

the player position bug got worse

by Hybrid Dog » Fri Aug 28, 2015 12:53

l made a mod to teleport the player back if it suddenly was at invalid coords far outside the map (viewtopic.php?f=6&t=5301).
But now it doesn't work because a serialization error comes crashing minetest before my mod can teleport it.
Last edited by Hybrid Dog on Sun Aug 30, 2015 09:14, edited 1 time in total.
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: the player position bug got worse

by TenPlus1 » Fri Aug 28, 2015 14:12

Hybrid, I've been using such a technique for Xanadu server so that when a player moves outside 30000 in all directions they will be teleported back to spawn... Works fine so long as you move them before it hits the map limits...
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: the player position bug got worse

by Hybrid Dog » Fri Aug 28, 2015 20:16

TenPlus1 wrote:Hybrid, I've been using such a technique for Xanadu server so that when a player moves outside 30000 in all directions they will be teleported back to spawn... Works fine so long as you move them before it hits the map limits...

What do you mean by "[hit] the map limits"?
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: the player position bug got worse

by TenPlus1 » Sat Aug 29, 2015 07:02

[hit] meaning I teleport the player back to spawn when they go over 30,000 instead of waiting for the 31,000 max limit...
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: the player position bug got worse

by Hybrid Dog » Sun Aug 30, 2015 09:14

TenPlus1 wrote:[hit] meaning I teleport the player back to spawn when they go over 30,000 instead of waiting for the 31,000 max limit...

but if that viewtopic.php?f=6&t=5301 appears
and you crash before you are able to become teleported back, teleporting players back doesn't work
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: the player position bug got worse

by TenPlus1 » Sun Aug 30, 2015 10:36

Like I mentioned before, this is what I use on Xanadu server to stop players falling into the world when the updatelistener bug strikes and they always get teleported to spawn ready to continue...
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: the player position bug got worse

by Hybrid Dog » Sun Sep 06, 2015 15:32

2015-09-06 17:30:57: ERROR[Main]: WARNING: updateListener: invalid value
2015-09-06 17:30:57: ERROR[Main]: WARNING: updateListener: invalid value
2015-09-06 17:30:57: ERROR[Main]: WARNING: updateListener: invalid value
2015-09-06 17:30:57: ERROR[Main]: WARNING: updateListener: invalid value
2015-09-06 17:30:57: ERROR[Main]: WARNING: updateListener: invalid value
2015-09-06 17:30:57: ERROR[Main]: WARNING: updateListener: invalid value
minetest: /build/minetest-f5cnS9/minetest-201509051901/src/util/serialize.h:265: void writeF1000(irr::u8*, irr::f32): Zusicherung »i >= ((float)(s32)((-0x7FFFFFFF - 1) / 1000.0f)) && i <= ((float)(s32)((0x7FFFFFFF) / 1000.0f))« nicht erfüllt.
Abgebrochen
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: the player position bug got worse

by benrob0329 » Sun Sep 06, 2015 16:46

I get the last part of that error...

viewtopic.php?f=6&t=13177
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

failed at TestSerialization

by Hybrid Dog » Sun Sep 06, 2015 18:42

$ minetest --run-unittests
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
======== Testing module TestAreaStore
[PASS] testVectorStore - 1ms
======== Module TestAreaStore passed (0 failures / 1 tests) - 1ms
======== Testing module TestCollision
[PASS] testAxisAlignedCollision - 0ms
======== Module TestCollision passed (0 failures / 1 tests) - 0ms
======== Testing module TestCompression
[PASS] testRLECompression - 1ms
[PASS] testZlibCompression - 0ms
[PASS] testZlibLargeData - 11ms
======== Module TestCompression passed (0 failures / 3 tests) - 13ms
======== Testing module TestConnection
[PASS] testHelpers - 0ms
[PASS] testConnectSendReceive - 595ms
======== Module TestConnection passed (0 failures / 2 tests) - 595ms
======== Testing module TestFilePath
[PASS] testIsDirDelimiter - 0ms
[PASS] testPathStartsWith - 0ms
[PASS] testRemoveLastPathComponent - 0ms
[PASS] testRemoveLastPathComponentWithTrailingDelimiter - 0ms
[PASS] testRemoveRelativePathComponent - 1ms
======== Module TestFilePath passed (0 failures / 5 tests) - 1ms
======== Testing module TestInventory
[PASS] testSerializeDeserialize - 0ms
======== Module TestInventory passed (0 failures / 1 tests) - 0ms
======== Testing module TestMapNode
[PASS] testNodeProperties - 1ms
======== Module TestMapNode passed (0 failures / 1 tests) - 1ms
======== Testing module TestNodeDef
[PASS] testContentFeaturesSerialization - 0ms
======== Module TestNodeDef passed (0 failures / 1 tests) - 0ms
======== Testing module TestNodeResolver
[PASS] testNodeResolving - 1ms
[PASS] testPendingResolveCancellation - 0ms
======== Module TestNodeResolver passed (0 failures / 2 tests) - 2ms
======== Testing module TestNoise
[PASS] testNoise2dPoint - 0ms
[PASS] testNoise2dBulk - 1ms
[PASS] testNoise3dPoint - 1ms
[PASS] testNoise3dBulk - 1ms
[PASS] testNoiseInvalidParams - 1ms
======== Module TestNoise passed (0 failures / 5 tests) - 4ms
======== Testing module TestObjDef
[PASS] testHandles - 0ms
[PASS] testAddGetSetClear - 1ms
======== Module TestObjDef passed (0 failures / 2 tests) - 9ms
======== Testing module TestProfiler
[PASS] testProfilerAverage - 0ms
======== Module TestProfiler passed (0 failures / 1 tests) - 0ms
======== Testing module TestRandom
[PASS] testPseudoRandom - 0ms
[PASS] testPseudoRandomRange - 2ms
[PASS] testPcgRandom - 0ms
[PASS] testPcgRandomRange - 3ms
[PASS] testPcgRandomBytes - 0ms
[PASS] testPcgRandomNormalDist - 92ms
======== Module TestRandom passed (0 failures / 6 tests) - 99ms
======== Testing module TestSchematic
[PASS] testMtsSerializeDeserialize - 1ms
[PASS] testLuaTableSerialize - 0ms
[PASS] testFileSerializeDeserialize - 1ms
======== Module TestSchematic passed (0 failures / 3 tests) - 4ms
======== Testing module TestSerialization
[PASS] testSerializeString - 0ms
[PASS] testDeSerializeString - 0ms
[PASS] testSerializeWideString - 0ms
[PASS] testDeSerializeWideString - 1ms
[PASS] testSerializeLongString - 0ms
[PASS] testDeSerializeLongString - 0ms
[PASS] testSerializeJsonString - 1ms
[PASS] testSerializeHex - 0ms
Test assertion failed: readF1000(is) == 53.534f
    at test_serialization.cpp:299
[FAIL] testStreamRead - 0ms
[PASS] testStreamWrite - 0ms
======== Module TestSerialization failed (1 failures / 10 tests) - 3ms
======== Testing module TestSettings
[PASS] testAllSettings - 4ms
======== Module TestSettings passed (0 failures / 1 tests) - 4ms
======== Testing module TestSocket
[PASS] testIPv4Socket - 51ms
[PASS] testIPv6Socket - 50ms
======== Module TestSocket passed (0 failures / 2 tests) - 101ms
======== Testing module TestThreading
[PASS] testAtomicSemaphoreThread - 15ms
======== Module TestThreading passed (0 failures / 1 tests) - 15ms
======== Testing module TestUtilities
[PASS] testAngleWrapAround - 8ms
[PASS] testLowercase - 0ms
[PASS] testTrim - 0ms
[PASS] testIsYes - 0ms
[PASS] testRemoveStringEnd - 0ms
[PASS] testUrlEncode - 0ms
[PASS] testUrlDecode - 0ms
[PASS] testPadString - 0ms
[PASS] testStartsWith - 0ms
[PASS] testStrEqual - 0ms
[PASS] testStringTrim - 0ms
[PASS] testStrToIntConversion - 0ms
[PASS] testStringReplace - 0ms
[PASS] testStringAllowed - 0ms
[PASS] testUTF8 - 0ms
[PASS] testWrapRows - 0ms
[PASS] testIsNumber - 0ms
[PASS] testIsPowerOfTwo - 0ms
[PASS] testMyround - 0ms
======== Module TestUtilities passed (0 failures / 19 tests) - 10ms
======== Testing module TestVoxelAlgorithms
[PASS] testPropogateSunlight - 0ms
[PASS] testClearLightAndCollectSources - 0ms
======== Module TestVoxelAlgorithms passed (0 failures / 2 tests) - 0ms
======== Testing module TestVoxelManipulator
[PASS] testVoxelArea - 1ms
[PASS] testVoxelManipulator - 0ms
======== Module TestVoxelManipulator passed (0 failures / 2 tests) - 5ms
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Unit Test Results: FAILED
    1 / 21 failed modules (1 / 71 failed individual tests).
    Testing took 902ms total.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Abgebrochen
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: the player position bug got worse

by benrob0329 » Sun Sep 06, 2015 19:27

Looks to me like a bug, either with MT or Irrlicht
 


Return to Minetest Problems

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

cron