Forum

> > CS2D > General > Ideas for Counter-Strike 2D 0.1.2.1
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Ideas for Counter-Strike 2D 0.1.2.1

1.429 Antworten
Seite
Zum Anfang Vorherige 1 262 63 6471 72 Nächste Zum Anfang

alt Re: Ideas for Counter-Strike 2D 0.1.2.1

Alistaire
User Off Offline

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

alt Re: Ideas for Counter-Strike 2D 0.1.2.1

DC
Admin Off Offline

Zitieren
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.
1× editiert, zuletzt 18.07.12 19:02:21

alt Re: Ideas for Counter-Strike 2D 0.1.2.1

DC
Admin Off Offline

Zitieren
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

alt Re: Ideas for Counter-Strike 2D 0.1.2.1

DC
Admin Off Offline

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

alt Re: Ideas for Counter-Strike 2D 0.1.2.1

SkullzOrig
User Off Offline

Zitieren
@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.

alt Re: Ideas for Counter-Strike 2D 0.1.2.1

Avo
User Off Offline

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

alt Re: Ideas for Counter-Strike 2D 0.1.2.1

Alistaire
User Off Offline

Zitieren
user Avo hat geschrieben
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?
Zum Anfang Vorherige 1 262 63 6471 72 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht