English Ideas for Counter-Strike 2D 0.1.2.1

1,429 replies
Goto Page
To the start Previous 1 2 ... 62 63 64 ... 71 72 Next To the start
18.07.12 06:58:00 pm
Up
Alistaire
User
Offline Off
Lua-generated images
-     -     -     -     -     -     -     -

Any image generated with Lua causes problems like;

Code:
1
2
3
4
5
6
t = {}
print(t[1])
t[1] = image('gfx/sprites/block.bmp', 1, 1, 1)
print(t[1])
freeimage(t[1])
print(t[1])


Will return;

Code:
1
2
3
nil
1
1


So you CAN'T possibly check with Lua if an image has been freeimaged.
IMG:http://i.imgur.com/5zhwOTP.png
18.07.12 07:01:41 pm
Up
DC
Admin
Offline Off
Oh yes you can!

You have to care about this yourself. And it's actually very easy: Whenever you use freeimage set the according image handle variable to null.

Problem solved.
edited 1×, last 18.07.12 07:02:21 pm
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
18.07.12 07:02:14 pm
Up
Alistaire
User
Offline Off
And how are you gonna do that with the phenomenon 'restart'.
IMG:http://i.imgur.com/5zhwOTP.png
18.07.12 07:02:51 pm
Up
DC
Admin
Offline Off
It's easy as well: Reset ALL image handles to null because every image is removed then.

edit: when saying null I actually mean nil when talking about Lua
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
18.07.12 08:26:11 pm
Up
PyKemis
User
Offline Off
Idea: Add a bot without it joining a team.
18.07.12 08:27:59 pm
Up
Happy Killer
BANNED
Offline Off
And why? Useless.
Banned because account was used to post nazi stuff
18.07.12 08:28:23 pm
Up
Yates
Reviewer
Offline Off
user Happy Killer has written:
And why?

Because bots are so helpful as spectators!
18.07.12 08:30:21 pm
Up
Happy Killer
BANNED
Offline Off
Oh. Its a really good idea. (lolno)
Banned because account was used to post nazi stuff
18.07.12 08:39:21 pm
Up
PyKemis
User
Offline Off
Creating a custom bot, my current work around is just returning 1 on the team hook. Everything can't be useful to everyone.
19.07.12 01:50:45 am
Up
DC
Admin
Offline Off
It makes no sense to have bots without team but there are already ways to do it nevertheless. You already named one. So obviously no changes required.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
19.07.12 03:52:25 am
Up
KINGGOLDrus
User
Offline Off
user DC, please, fix HUD image system for lua.
Quote:
HUD images created later are sending to back.

or
Quote:
add this system:
IMG:http://s017.radikal.ru/i428/1112/9d/8bf0b9feeaect.jpg

19.07.12 05:12:59 am
Up
SkullzOrig
User
Offline Off
@user PyKemis: You could just make the bots like the monster on the tibia, except use the bots abilities and skills.

@user DC: If it is possible for us to have the bots on no team then why not tell us how, or better yet make a script for it? Im just asking.
19.07.12 12:47:55 pm
Up
DC
Admin
Offline Off
Because user PyKemis already told you one way. The other one would be to simply use cs2d cmd makespec.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
19.07.12 01:01:36 pm
Up
Misho
User
Offline Off
IMG:http://i41.servimg.com/u/f41/16/81/18/73/trigge10.png
19.07.12 01:28:23 pm
Up
Avo
User
Offline Off
User data in CS2D shouldn't be stored. Player should enter his/her USGN username and password every CS2D launch.
19.07.12 01:41:39 pm
Up
BaDgEr
User
Offline Off
user Avo has written:
User data in CS2D shouldn't be stored. Player should enter his/her USGN username and password every CS2D launch.

No! It will be annoying
19.07.12 01:45:34 pm
Up
Avo
User
Offline Off
I mean security risk. Hackers would steal files what store your account data, copy into their cs2d sys folder and launch game with your user data. It's just part what I would say.
19.07.12 01:46:22 pm
Up
Misho
User
Offline Off
user Avo has written:
User data in CS2D shouldn't be stored. Player should enter his/her USGN username and password every CS2D launch.


This boy is so smart.
19.07.12 01:50:10 pm
Up
Alistaire
User
Offline Off
user Avo has written:
I mean security risk. Hackers would steal files what store your account data, copy into their cs2d sys folder and launch game with your user data. It's just part what I would say.


Have you ever seen the encryptor key for the password storage? No? Neither did I.

Still think they can READ the file?
IMG:http://i.imgur.com/5zhwOTP.png
19.07.12 01:56:50 pm
Up
Avo
User
Offline Off
Password? Yes.
To the start Previous 1 2 ... 62 63 64 ... 71 72 Next To the start