Forum

> > CS2D > General > CS2D Bug Reports
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D Bug Reports

2,043 replies
Page
To the start Previous 1 237 38 39102 103 Next To the start

old Re: CS2D Bug Reports

Yates
Reviewer Off Offline

Quote
Yeah that's a fake. Everything I host is on 149.202.223.5

Oh well. These things happen.

old Re: CS2D Bug Reports

Hajt
User Off Offline

Quote
May I have your attention please?

I know how you can execute(?) bug with the score. If someone plant the bomb and then disconnect from the server and bomb will explode, the next player will get 15414 score. I recorded it but my graphics card is fucked up and video freezes, sorry for that but I hope you know what I mean and in the next release this bug will be fixed.

https://youtu.be/Dyc8LHyG6Hw

old Re: CS2D Bug Reports

crazy junkman Wolfgang
User Off Offline

Quote
i noticed this bug few times on diferent servers, but never really give it any attention, but now i managed to screen shot it https://upload.vstanced.com/image/c31

as you can see im using m3 shotgun and when i reload it it puts all shells into shotgun, all 32 rounds (8 is max)... and im having 32 shells in backup because i recently picked up ammo, so dont bother with that

so to wrap things up, why my shotgun has more shells (read bullets if you dont know what a shotgun shell is) than normal?

old Re: CS2D Bug Reports

Hajt
User Off Offline

Quote
I noticed that there is a lot of bug with rank system, exactly with the score. I removed stats data and run the server and stats has been corrupted again. A few players have more kills than score for completely no reason. I think you should rewrite part of code for stats and use the other solutions. I have an idea. You can ignore score during saving statistics and just use frags and deaths to set positions in rank by using simple algorithm sortValue = frags - deaths

old Re: CS2D Bug Reports

slimK
User Off Offline

Quote
One more bug (idk if someone already reported):

When I use the option see details for a random server I can't see the players (only happen in some cases but I'm sure is not a ping or internet related problem).

@user VADemon: omg ty so much for that hotfix

old Re: CS2D Bug Reports

Yates
Reviewer Off Offline

Quote
@user ead: That's not a bug, someone with the RCon password has used the cs2d cmd setscore command. You can either edit the score file with a hex editor or remove it all together and start over.

old Re: CS2D Bug Reports

ead
User Off Offline

Quote
Thanks guys! @user Hajt: @user Yates:

I fix it on my server, but with discover the problem. Because I know has not passed my rcon for other people.

old Re: CS2D Bug Reports

Cebra
User Off Offline

Quote
i have trouble with the cmd cs2d lua cmd item
i get a itemID (not the type) from the collect hook, then i try to get any info about this weapon, but if i use the id i get "false" in every value

i don't know if its my fault or not

old Re: CS2D Bug Reports

Yates
Reviewer Off Offline

Quote
1
2
3
4
5
function _collect(id, iid, type)
	msg("iid: "..(item(iid, "name") or "nope"))
	msg("type: "..(item(type, "name") or "nope"))
end
addhook("collect", "_collect")

Check which one of these work and then you know what to use. I also get confused when using
iid
and
type
, the docs should be more clear on what is what.

• Edit: Oh look! I found this on the cs2d lua cmd itemtype page:

Quote
Attention: Do not confuse the ID of an item instance on the map (see item command) with the type ID! Those are two different things. Each item has one unique ID but multiple items can have the same type ID!


So it seems as if the iid is the id of the item on the map, and the type is the actual CS2D item id.

old Re: CS2D Bug Reports

Cebra
User Off Offline

Quote
no i have understand what is whats
i must use the id to get the ammo
but then i always get false

old Re: CS2D Bug Reports

Yates
Reviewer Off Offline

Quote
The cs2d lua hook collect has
ain
and
a
, these should be used to get the ammo count. Using cs2d lua cmd item is used for an item on the map. Once picked up I assume the
iid
can no longer be used (don't take my word for that).

old Re: CS2D Bug Reports

Cebra
User Off Offline

Quote
yes i think i have to go this way
but i want to use the id to get the ammo at any time

old Re: CS2D Bug Reports

Yates
Reviewer Off Offline

Quote
Okay, if you are 100% sure that
msg("iid: "..(item(iid, "ammo") or "nope"))
doesn't work then there must be a bug.

I cannot at this time check in-game, so if someone else is willing to figure out if we made a mistake or double check this is not working then I'm pretty sure it's a bug

• Edit: I just found this:

Quote
Moreover there is:
item(0,"table"): returns a Lua table with all dropped item IDs (the unique instance IDs, NOT the type IDs!)


Which if it means exactly what it is implying then
iid
on cs2d lua hook collect has no use at all (because you are picking it up).

old Re: CS2D Bug Reports

Cebra
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
addhook("collect","c")
function c(id,iid)
	msg(tostring(item(iid,"exsists")))
end

addhook("drop","d")
function d(id,iid)
	msg(tostring(item(iid,"exsists")))
end

i tryed this code, but every time i get "false"

old Re: CS2D Bug Reports

TrialAndError
User Off Offline

Quote
@user Cebra: Maybe because there is no such thing as "exsists"?

It should be "exists"

//Edit:
I did some quick testing, and when dropping, it returned false. So I put a timer on it, it returned true after a couple of seconds. I guess that the IID doesn't register in time, so no same IID is found when dropping.

When collecting an item, the item will no longer be on the ground, so it won't exist.
edited 2×, last 07.07.16 07:49:48 pm
To the start Previous 1 237 38 39102 103 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview