Forum

> > CS2D > General > Please Report All Current CS2D Issues
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Please Report All Current CS2D Issues

37 replies
Page
To the start Previous 1 2 Next To the start

old Please Report All Current CS2D Issues

SQ
Moderator Off Offline

Quote
I would like to know all known issues at the moment. All the bugs that occurred and their exact conditions. That probably mostly includes lighting problems, network.

I was gone for a year do to work and stuff I'm doing in real life. I might try finding some time now to solve all the last problems to have stable release.

About lighting issues, I always need to know if it's OpenGL or DirectX. As far as I know the lighting problem occurred only on DirectX-FullScreen mode when minimizing the game, right?
edited 1×, last 02.03.17 02:13:28 pm

old Re: Please Report All Current CS2D Issues

xsiN
User Off Offline

Quote
Whenever I have to give admin permission to for example bandicam, if I have cs2d open it simply crashes, the game is still there, but the screen doesn't move.

Windows 8.1

Also doing CTRL+ALT+DEL to open the Task Manager, it does the same.

old Re: Please Report All Current CS2D Issues

slimK
User Off Offline

Quote
BUG 1:

The bug when you minimizing the game and crash when you comeback to the game again happens on directx only, to fix I've changed the language to english, add a parameter to run the game on 16bit mode and the radar is simple transparent.
If I use another settings I can't run the game well on direct x .

BUG 2:

Using another languages (aleast with directx) if you go to options ingame the game crashes too.

old Re: Please Report All Current CS2D Issues

Mora
User Off Offline

Quote
when you in the entity "Env_Light" type any number offset it wont work when in map and sometimes reset even in editor(it's pos, not int0-9).
IMG:https://i.imgur.com/zVedhMI.png

Maybe the same with entity "Env_LightStripe".
I used there three commands:
/spawnitem 2 2 2
/spawnitem 13 2 2
/spawnitem 2 2 2
the result:
IMG:https://i.imgur.com/t01piQ8.png

return it and console would say: No weapon with such id. And do not spawn it.

old Re: Please Report All Current CS2D Issues

DC
Admin Off Offline

Quote
Regarding the second part: That's because there is no item with ID 13. The good news: I already fixed this for the next release (made it impossible to spawn/equip bad IDs).

old Re: Please Report All Current CS2D Issues

Gaios
Reviewer Off Offline

Quote
1.
Lua command image() lags CS2D. While you want to spawn eg. 50 images in 1s, you will get short screen freeze (It's server-sided).

Also if you have spawned about 400 images, CS2D client (fps drop) & server lags (probably bitrate). CPU can't handle such images.

2.
UTF-8 at servers & Lua scripts doesn't work.

old Re: Please Report All Current CS2D Issues

Mora
User Off Offline

Quote
Also please add player's dots on radar in first plan, because using icons in map would make players impossible to see on radar.(if using improved radar).
--
[changed post]
Idk what it depens on, buw then i click "x" and abort server-joining(downloading resources) it crash after time:
https://www.youtube.com/watch?v=NebgF9UtF7E&feature=youtu.be
when the video is stopped - it's not video lag, is cs2d freezed.
edited 2×, last 04.03.17 07:33:51 pm

old Re: Please Report All Current CS2D Issues

BCG2000
User Off Offline

Quote
Fix the Lua memory leaks, I remember I checked old game versions before and the problem started after LuaJIT was removed. Before LuaJIT there were no memory leaks, but after LuaJIT was added and then later removed, memory leaks appeared.

From what I remember, they can be easily reproduced by using the hook always like this:

1
2
3
4
5
6
7
8
addhook("always", "_always")
function _always()
	local PList1 = player(0, "table")
	local PList2 = player(0, "table")
	local PList3 = player(0, "table")
	local PList4 = player(0, "table")
	local PList5 = player(0, "table")
end

That's just an example code, just put it on server.lua and run the server, see how it will keep allocating more and more memory without ever freeing it again.

It's not just the hook always that has this problem, other hooks like ms100 and second have it too, though due to their less frequent execution, they leak less memory.

Tables also leak memory by themselves, one solution is to set them to nil when they are not needed anymore but I'm not sure if that really helps with it.

There are other things that leak memory too but I don't remember what they are.

Just take any big script and you will see that the server will keep allocating more and more memory, eventually the machine (like a low-end VPS) it's being run on will run out of memory. Like I said in the start, this didn't happen on CS2D versions prior to LuaJIT.

old Re: Please Report All Current CS2D Issues

BCG2000
User Off Offline

Quote
user MikuAuahDark has written
@user BCG2000: Are you sure you didn't call
collectgarbage("stop")
somewhere in your script?


No and I see no reason to do that, I wasn't even aware that this function existed in Lua.

But now that you brought it up, it makes more sense, it's perhaps a bug in the garbage collector. That explains the RAM usage constantly increasing.

old Re: Please Report All Current CS2D Issues

Starkkz
Moderator Off Offline

Quote
@user BCG2000: It's just impossible that this could happen because the Lua engine wasn't even touched, it's just the import that was changed back then.

Edit: LuaJIT's garbage collector performs minor and major collections, minor collections just release little memory spaces while the major releases everything else.

If you tried the jit-version perhaps you could've only experienced the minor garbage collection.

1
2
3
4
5
6
7
8
9
addhook("always", "_always")
function _always()
     local PList1 = player(0, "table")
     local PList2 = player(0, "table")
     local PList3 = player(0, "table")
     local PList4 = player(0, "table")
     local PList5 = player(0, "table")
	msg(collectgarbage("count"))
end
I only used a slightly modified version of your code to visualize that.
edited 2×, last 07.03.17 04:35:17 am
To the start Previous 1 2 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview