Oh well. These things happen.
Forum
CS2D General CS2D Bug ReportsOh well. These things happen.
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
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?
Here's a video of me showing the bug: https://youtu.be/vkLOP9Uh1Y4
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).
@ VADemon: omg ty so much for that hotfix
Satchel Charge
Look : http://status.showtime2d.com/de.php
Screen ;
http://hostfreeimg.com/image.php?di=PX1G
Need solved it more fast possible.
@ ead: User stats editor (24)
I fix it on my server, but with discover the problem. Because I know has not passed my rcon for other people.
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
1
2
3
4
5
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
iidand
type, the docs should be more clear on what is what.
Edit: Oh look! I found this on the 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.
i must use the id to get the ammo
but then i always get false
ainand
a, these should be used to get the ammo count. Using item is used for an item on the map. Once picked up I assume the
iidcan no longer be used (don't take my word for that).
but i want to use the id to get the ammo at any time
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!)
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
iidon collect has no use at all (because you are picking it up).
1
2
3
4
5
6
7
8
9
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"
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