English CS2D Bug Reports

1,776 replies
Goto Page
To the start Previous 1 2 ... 88 89 Next To the start
06.11.19 11:47:14 pm
Up
DC
Admin
Offline Off
@user Quattro: Issues is fixed. I released a patch 1 version (dedicated 1.1)
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
08.11.19 09:37:19 pm
Up
Quattro
User
Offline Off
Nice!
Could you also check serverinfo.txt? For some reason it is being used by 2D all the time, as if it's not closed by the game after reading it. I am on new server so I don't know if it's permissions issue or the game
08.11.19 10:35:15 pm
Up
DC
Admin
Offline Off
@user Quattro: Can't see any problems in the code. The file is closed properly as soon as it has been fully read.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
09.11.19 08:44:56 am
Up
The Superman
User
Offline Off
@user DC: Shouldn't the LAG COMPENSATION ticks be 63?

Also there is a bug with the Laser Mines.

I had 4 laser mines, and there was a laser mine on the floor, so when i got it, I lost my laser mines, I have just got one.
09.11.19 09:44:55 am
Up
DC
Admin
Offline Off
@user The Superman: Not sure what you're talking about. There's no such thing as "lag compensation ticks" and also I don't see a reason why they should be 63.

Lasermine thing doesn't sound good. Will check.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
09.11.19 10:14:18 am
Up
The Superman
User
Offline Off
But "Superman" can see.

Well, i forgot something to ask.

Why the fps limit is 63, It isn't 60. Some pepole have 63 fps, but others have lower fps. That's stupid. I think you have to change it or i will not save the world .
09.11.19 10:39:26 am
Up
DC
Admin
Offline Off
It's due to internal calculation stuff. It can be entirely ignored. It's not a problem whatsoever. Enable vsync and set your monitor refresh rate to 60 if it's super important to you that this little number says 60.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
09.11.19 04:51:40 pm
Up
The Superman
User
Offline Off
user DC has written:
It's due to internal calculation stuff. It can be entirely ignored. It's not a problem whatsoever. Enable vsync and set your monitor refresh rate to 60 if it's super important to you that this little number says 60.


If I change it to 60 fps, yet other players will still have 62-63 fps, everyone should get the same fps limit. You might broken it. When it was 50 fps, there wasn't any issue with it. But since you changed it to 60, it's broken.
09.11.19 05:00:43 pm
Up
Goo
User
Offline Off
@user The Superman: is right, I died to xXx~PrOmAsteR-xXX because I had 2-3 less frames to react than him.

Must be fixed ASAP.



Jokes aside, this means literally nothing.
Pretty sure I had 51 FPS once in the older versions.
10.11.19 01:26:44 pm
Up
DC
Admin
Offline Off
@user The Superman: If you don't accept "internal calculation stuff" as an answer (which I understand) I'll have to get into more detail:

The cap is per frame. So for each frame CS2D checks IN THEORY if it took ~1000 / 60 ms CPU + GPU time. If it was less the game waits 1 ms until that time is reached.

If you do the math however you will notice that 1000 / 60 is ~16.666 so it's not exactly 16 or 17 ms. We can only work with ms precision though. BlitzMax doesn't allow more precise measuring or more precise delays out of the box.

This is bad because it would mean (under perfect conditions) that we always go up to 17 ms per frame.
1000 / 17 = 58.823 FPS which would be displayed (depending on rounding) as 58 or 59 FPS.

People would complain that the game doesn't reach 60 FPS. Also with VSync ON this would be really bad because we might miss some VSync cycles because we artificially delay execution for too long. This would lead to even lower FPS with VSync on. (really bad = probably nobody would notice but it would be stupid)

IN PRACTICE we take 1000 / 65 instead of 1000 / 60 as target FPS. Together with all overhead and imprecision this leads to ~60 FPS IN MOST CASES and it ensures that - if VSync is on - no VSync cycle is missed because of too high artificial delays.

The logic is the same for everyone. We are talking about sub-ms precision. Human reaction times are much higher. It doesn't give anyone a noticeable/measurable advantage or disadvantage. I'm very sure that no human being could ever tell the difference between 60 and 63 FPS without seeing the frame counter (maybe you can because you're super man but that's an edge case, sorry).

So as you see there's a good reason that the FPS sometimes go very slightly beyond 60. This is by design, intended and not a real problem at all. Nothing is broken there and it won't be changed.
edited 1×, last 10.11.19 01:37:31 pm
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
10.11.19 01:39:50 pm
Up
Medeiros
User
Offline Off
I think this had been reported like a billion times already and it seems to be forgotten every update. I'm re-reporting this bug because I'm not sure if user DC just forgets to fix it (understandable) or there's some technical voodoo behind it which makes it either impossible or time consuming to fix but here it goes: dropped flashbangs are bugged.
If you have 1 flash in your inventory and move over a tile where there's 2 flashes, you pick both of them instead of just one, so out of the 3 flashbangs, one of them magically disappears. ×
10.11.19 02:05:38 pm
Up
DC
Admin
Offline Off
@user Medeiros: This has not been forgotten and in general repeating bug reports isn't helpful (the thread rules even tell you not to do that).

The point with this one is that it's not a bug. It's how the game works. If you collect something you always collect it completely. If you hit a carry limit it doesn't matter. Everything you can't carry is just ignored and the item on the map is removed.

To me this is not a crucial problem. Of course it makes a big difference in gameplay but if the behavior is consistent it's fair and not a bug.

Therefore changing this never had a high priority for me.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
10.11.19 02:17:35 pm
Up
Edik
User
Offline Off
When firing the rocket launcher, it explodes right in front of you. This happens only online. A second client will see the projectile fly correctly to its destination point. Only the guy who shoots sees it exploding in front of him.

https://streamable.com/qkec2
11.11.19 06:06:38 pm
Up
Goo
User
Offline Off
Not sure if this is considered a bug, but the tile command returns true for "walkable" tiles that are not "walkable".

For example if a player is stuck in between an L shaped wall, it will report that he can walk, even though he cannot.

This causes for taking unnecessary measurements around the player since this doesn't seem to check if the player core (12x12) is walkable, but rather if the core's core (1x1?) is walkable.

Is this the only solution?:

Code:
1
2
3
4
5
if (flr(math_floor((newX - pl_collision) / 32), math_floor((newY - pl_collision) / 32), 'walkable') and flr(math_floor((newX + pl_collision) / 32), math_floor((newY + pl_collision) / 32), 'walkable') and flr(math_floor(newX / 32), math_floor(newY / 32), 'walkable')) then
     -- Walkable
else
     -- Not walkable
end


flr = tile
math_floor = math.floor
pl_collision = 14





EDIT:
The shieldhit hook doesn't seem to trigger when the shield is hit by a gut bomb...?
edited 1×, last 11.11.19 08:07:27 pm
11.11.19 08:09:56 pm
Up
DC
Admin
Offline Off
@user Goo: If a command doesn't work like you want it to work then this doesn't mean it's a bug
cs2d lua cmd tile works as explained in the documentation. It simply gives you information about a specific tile. Nothing more and nothing less.

If you want to check if a player can walk a certain space you have to write your own logic. Like you did. Basically checking the 4 edge points is the solution.
Just put it in a nice function and you can use it everywhere.

Edit: Regarding shield: I don't think the shield registers any projectiles except for regular bullets / laser. It also doesn't block those I think.
edited 1×, last 11.11.19 08:13:50 pm
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
11.11.19 08:13:39 pm
Up
Goo
User
Offline Off
@user DC: what about the shieldhit hook?
How am I supposed to prevent the shield from blocking shots or modifying the damage?

And it doesn't get triggered by gut bomb, sadly.
11.11.19 08:17:04 pm
Up
DC
Admin
Offline Off
You can kind of fake it by checking the weapon of the player who receives damage (check if it's a shield) and by comparing the rotation with the position of the damage source. You should make a new thread regarding this in the scripting section.

Scripting tasks (or feature requests) shouldn't be discussed in the bug report thread.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
To the start Previous 1 2 ... 88 89 Next To the start