English CS2D Bug Reports

1,779 replies
Goto Page
To the start Previous 1 2 ... 84 85 86 ... 88 89 Next To the start
27.08.19 12:45:45 pm
Up
Mora_rus
User
Offline Off
I've experienced something like you throwing an grenade and somebody closed the door(dyn_wall) and the grenade is get through, but in face it bounced, you see as the nade is exploded after wall but in fact it exploded near you bcs of bounce. But that it damages through walls and such big distance.. Something weird. Also may be a bad hitreg.
S.T.A.L.K.E.R. - The Lost Land dev. https://discord.gg/aABCkHQ
27.08.19 04:58:06 pm
Up
Gaios
Security Supporter
Offline Off
@user Mora_rus: This issue is produced by lag latency and no synchronization for flying projectile items between sever and client. For a one person it looks correctly and for a other one it looks unsynchronized.
27.08.19 09:51:56 pm
Up
Quattro
User
Offline Off
@user Gaios:
It looks nothing like synchronization issue. One thing is to get hit by lag compensation from a delayed movement where the grenade landed and other is to get hit by a grenade which went the other way nowhere even close to you.
31.08.19 11:09:54 am
Up
DC
Admin
Offline Off
Agree. Most likely network sync problems. Not sure why the occur. The damage is always calculated on server side so it's always correct even if the grenade is flying somewhere else on the client.

Also note that there's a setting to make explosion damage pass through walls: cs2d cmd mp_curtailedexplosions - make sure it is set to 1 if you don't want explosion damage to pass through walls.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
31.08.19 08:43:21 pm
Up
Mora_rus
User
Offline Off
The hitreg (idk it about sync or not) working incorrectly somehow.
For example you firing 30 bullets from m4a1 into the Wall III with a spray, without stopping and the total damage will be lower by approximately five shots. But otherwise when you firing the Wall III with round by round, proclicking. In that case all the bullets will reach victim.
And the third case is when you firing nonstop 29 bullets (and leave only 1 bullet, then u stop to firing) and then you dont see how you firing 4-5 left bullets but you dont click anything. Seems in this case missed hits delayed and then each second they firing back for total 4 or 5 seconds.
(noticed when i having 50-90ms ping, but may be also happen to any ping)
S.T.A.L.K.E.R. - The Lost Land dev. https://discord.gg/aABCkHQ
05.09.19 09:02:23 pm
Up
Hajt
User
Offline Off
Question. Did you fix code releated with LC after change game FPS from 50 to 60? I feel that something is bugged there...
Yooo. We are playing mix matches 5on5 in evening hours on the server CS2D.TK | Mix/Match, you can join us, server password is match. Statistics, leaderboard can be found under the following link.
17.09.19 07:44:37 pm
Up
Edik
User
Offline Off
• If you take the number of a tween_move() and count it down with the ms100 hook at the same time, then tween_move () is always faster. The longer the time, the bigger the difference becomes.

• If using tween_animate() BEFORE player is on server, the animation will be really really fast.
edited 1×, last 17.09.19 09:18:32 pm
17.09.19 08:03:33 pm
Up
DC
Admin
Offline Off
@user Mora_rus: Shots are sent in an unreliable manner. So this can be caused by packet loss and varying latency between you and the server.
And yes, there is a simple counter in the server. In case you are shooting faster than you are allowed to (can be caused by either hacks or varying latency) the server won't register that shot immediately but count up the counter and simulate the shot as soon as you are allowed to shoot again (not sure if this is the behavior you described).

@user Hajt: I think so. It was always cheap and never super accurate.

@user Edik: cs2d lua hook ms100 (and other timing hooks) are not executed EXACTLY every X ms but the delay between 2 executions is always AT LEAST X ms. Based on the FPS caps (CS2D is single threaded) actual execution rate can and will be a few milliseconds off.

This won't be changed. Please always use timers (or tweens) for better precision. The FPS imprecision still matters here but it will only have an impact once so the worst possible divergence is about 16 ms (with 60 fps).

Using hooks to count up timers is very bad practice and not recommended if you need precision as the error will sum up over time - like you already noticed.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
20.09.19 12:01:21 am
Up
Edik
User
Offline Off
Oh, well I missed out that these time hooks are depending on the frames. Thanks for that.

But tween_animate() seems to be bugged, if you run it before you join the server. Probably Client is missing the speed of the animation, so he just takes 0 as the speed. Right now there is a dirty fix to set the anmation again whenever a player joins. But would be cool if this gets fixed .
20.09.19 02:28:01 am
Up
Masea
Super User
Offline Off
cs2d cmd hudtxtalphafade works only for texts whose ID is between 0-49. And most probably the problem is also valid for cs2d cmd hudtxtmove and cs2d cmd hudtxtcolorfade. Someone forgot something, I guess
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast 2 Modification (27)
21.09.19 07:08:20 pm
Up
mrc
User
Offline Off
The grenade explosion bug is a reality, I throw the HE, it goes to an direction and the explosion went in the other direction (and I killed a guy where it exploded). I think it's a sync problem with the projectile image. I'll try to reproduce it again and understand what happens. Maybe it's a pixel perfect in the corner of a wall due to the new resolution, idk.
CS2D GLOBAL Community - www.CS2DGLOBAL.tk
26.09.19 03:37:40 pm
Up
Gaios
Security Supporter
Offline Off
Quote:
®path text tag (draws image in chat)

How to draw image with special path like
<flag:iso>
, or
<tile:X>
, or
<spritesheet:PATH:FRAMEW:FRAMEH[:MODE]>
?

Spritesheet command needs additional parameter for start frame to replace default frame: 1. Or another special path to draw image from spritesheet by frame id.

Maybe hotfix user DC? I need that ASAP, because I don't want players to download eg. 50 images instead of 1.
26.09.19 09:32:01 pm
Up
DC
Admin
Offline Off
@user Edik: Ah, that's possible. Will check. Thanks!

@user mrc: Yes it can happen in some cases and yes it's a sync problem. The calculation is sometimes slightly off which can lead to totally different results when the grenade hits the corner of a wall on server but doesn't hit it on client because it's like half a pixel off. I didn't look into it yet but I'm very sure that the problem was present in the first version already and isn't related to the resolution.

@user Gaios:
user SQ implemented that stuff (images in text and spritesheets) which is why I can't say much about it without looking into it. I assume that most of the tags are not supported when using images in text.
Also you have to use cs2d lua cmd imageframe to change the frame of a spritesheet.

Maybe I will do a small fix soon for the missing changes with the new HUD text ID range mentioned by user Masea
Maybe I find time to fix/improve some other things mentioned here as well.
edited 1×, last 26.09.19 11:40:08 pm
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
26.09.19 10:33:56 pm
Up
SQ
Moderator
Offline Off
@user Gaios: Chat Image has nothing to do with Lua Image() implementation. "<flag:iso>" features are only related to dynamic images on that map.

® implementation is pretty much the same as © for the colors.
27.09.19 08:13:11 am
Up
Gaios
Security Supporter
Offline Off
user DC has written:
Also you have to use cs2d lua cmd imageframe to change the frame of a spritesheet.

But I can't change image frame for chat image. I want something to draw image at chat from spritesheet
27.09.19 04:33:27 pm
Up
Edik
User
Offline Off
There is a wrong error with spritesheets and http download. If joining server this error will be shown:
IMG:https://i.ibb.co/PYcsSw9/console.png


The server is saying this:
IMG:https://i.ibb.co/nPW0G1L/server.png


File added to Servertransfer.lst:
Code:
1
http://xxx.xxx.xxx.xxx/gfx/a.bmp > gfx/a.bmp


Image created with lua:
Code:
1
image("<spritesheet:gfx/a.bmp:32:32:m>", x, y, 3)


Besides these errors everything works. Its added to servertransfer.lst correctly (yes without <m>) and the image will be downloaded and also shown to the player. Maybe there is something with the <m> while checking if the file exists? The Flag <m> is only used at the lua code.

Also it seems that downloads stop randomly on random servers. It downloads a couple of files and then stops. It is needed to cancel the download and rejoin the server so it will continue for the next couple of files. Could be my imagination, but I think http downloads work better. But even if using that, the map will be downloaded directly, where the download can and will often stop again.
edited 5×, last 27.09.19 04:51:13 pm
27.09.19 09:33:53 pm
Up
Pagyra
User
Offline Off
@user Edik: these net problem is same for my mod, there's a problem with sending image data between client and server, but dc and simonas said that there is no glitches.
27.09.19 09:41:02 pm
Up
Grand Master
User
Offline Off
Can you use your mind even for once time guys, Pagrya did you trust Simonas? Of course it's glitch, Simonas does not know anything.
edited 1×, last 27.09.19 09:52:15 pm
27.09.19 09:52:41 pm
Up
DC
Admin
Offline Off
@user Pagyra: What? No! I'm very sure that I never said that there are no glitches! CS2D is full of bugs. Like most software projects. The file transfer is very fragile and full of issues. All mod related stuff is even worse.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
28.09.19 12:38:12 pm
Up
Mora_rus
User
Offline Off
Bug with reloading mode on "reload" hook.
used code
Code:
1
2
3
4
addhook("reload", "_reload")
function _reload(id, mode)
     msg(mode)
end

when i reloading pistols is okay, when i reload rpg is okay:
on start 1, on finish 2
when i reloading rifles, that doesnt have zoom - is okay:
on start 1, on finish 2
When i reloading weapon that having zoom isn't okay:
on start 0, on finish 2.
Idk what cause that problem but i can still use "if mode==1 or mode==0 then", but seems is something wrong.
cs2d lua hook reload says nothing about 0 mode.
S.T.A.L.K.E.R. - The Lost Land dev. https://discord.gg/aABCkHQ
To the start Previous 1 2 ... 84 85 86 ... 88 89 Next To the start