Forum

> > CS2D > General > Ideas for Counter-Strike 2D 0.1.2.1
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Ideas for Counter-Strike 2D 0.1.2.1

1,429 replies
Page
To the start Previous 1 262 63 6471 72 Next To the start

old Re: Ideas for Counter-Strike 2D 0.1.2.1

Alistaire
User Off Offline

Quote
Lua-generated images
-     -     -     -     -     -     -     -

Any image generated with Lua causes problems like;

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;

1
2
3
nil
1
1

So you CAN'T possibly check with Lua if an image has been freeimaged.

old Re: Ideas for Counter-Strike 2D 0.1.2.1

DC
Admin Off Offline

Quote
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

old Re: Ideas for Counter-Strike 2D 0.1.2.1

DC
Admin Off Offline

Quote
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

old Re: Ideas for Counter-Strike 2D 0.1.2.1

DC
Admin Off Offline

Quote
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.

old Re: Ideas for Counter-Strike 2D 0.1.2.1

SkullzOrig
User Off Offline

Quote
@user Apache uwu: 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.

old Re: Ideas for Counter-Strike 2D 0.1.2.1

Avo
User Off Offline

Quote
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.

old Re: Ideas for Counter-Strike 2D 0.1.2.1

Alistaire
User Off Offline

Quote
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?
To the start Previous 1 262 63 6471 72 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview