Forum

> > CS2D > Scripts > Max Entities?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Max Entities?

24 replies
Page
To the start Previous 1 2 Next To the start

old Max Entities?

Ranu
User Off Offline

Quote
• Hello, I have a big map and there is more than 10000entities, and when i use mp_luamap 1, The game will be crashed and in the Message.Box it says "EXCEPTION_ACCESS_VIOLATION"

IMG:https://i.imgur.com/h0LeCQR.png


• What about it? What should i do to i fix it?

old Re: Max Entities?

Bowlinghead
User Off Offline

Quote
Does the map work without the script (mp_luamap 0)?

The script shows an error. Do you mind showing all of the neccessary code?

old Re: Max Entities?

Ranu
User Off Offline

Quote
The lua works well, but i have problem with mp_luamap(lua map).

old Re: Max Entities?

Rainoth
Moderator Off Offline

Quote
That error can be thrown out for multiple reasons. We'll need more context.
What is the script? Can you share the code?
What does it do and how does it do it? Are there any particularly 'complex' parts of code or something you could point out? Maybe it's utilizing the newest lua commands or experimental features that came from 1.0.0.8?

This is most likely not caused by the map but by the script, unless they both interact or maybe it IS caused by the map but you just can't set up the conditions to get the error again.

TL;DR Need more information.

old Re: Max Entities?

Ranu
User Off Offline

Quote
@user Rainoth: It's without lua script, only (mp_luamap 1).

IMG:https://i.imgur.com/g7itc9M.png


Edit 2x: Trigger: "If" crashes the game(in the map), my question is "How lua can crash the game?
edited 3×, last 04.04.19 04:06:50 pm

old Re: Max Entities?

Rainoth
Moderator Off Offline

Quote
Uhm. Well, if it doesn't work with mp_luamap on then there must be a map with a script (most likely RattleSnakes.lua in the 'maps' folder in your cs2d installation directory) and that's a lua script.

Or are you saying that regardless if you run the script, it works either way (you just run the script with another method) but it just starts crashing any time you try to use it.

So you could enable mp_luamap 1 on de_dust and it would crash, essentially..?

Which option is it?

old Re: Max Entities?

Ranu
User Off Offline

Quote
@user Rainoth: If i enable mp_luamap on de_dust, it wouldn't crash.

• My question is this, so can you answer it? "How lua can crash the game?"

• I run it with another method? while there is more than 100 "if" triggers?

• When i delete 90% of that "if" triggers, the game won't crash.

old Re: Max Entities?

Mami Tomoe
User Off Offline

Quote
Stop trying to steal the map, you need permission from Lubo to use the map.

It's a map protection of some sort.

old Re: Max Entities?

Ranu
User Off Offline

Quote
@user Mami Tomoe: Lot of pepole offered me to i back 96 jail again, Lubo stopped playing cs2d and he closed his server, so i do that, I'm waiting for lubo more than 2months, he is still offline. and it isn't map protection.

If lubo come back, i'll ask lubo about it, and if he say no, i close my server.

old Re: Max Entities?

Mami Tomoe
User Off Offline

Quote
It is map protection, because I know how to remove it.
Even if he doesn't come back, as long as you don't have his permission you shouldn't attempt to steal the map.

Assume there was a store near your house and it was closed for 20 years, does it make it so if you decide to break in and steal everything not considered stealing? No it doesn't.

And those "lots of people" wouldn't want their maps to be stolen.
And even if they didn't care if their maps were stolen, Lubo does care which is proven by his map protection.
edited 1×, last 04.04.19 08:36:25 pm

old Re: Max Entities?

Gaios
Reviewer Off Offline

Quote
user Ranu has written
@user Rainoth: It's without lua script, only (mp_luamap 1).

IMG:https://i.imgur.com/g7itc9M.png


Edit 2x: Trigger: "If" crashes the game(in the map), my question is "How lua can crash the game?

Stop using hacks man flame

old Re: Max Entities?

DC
Admin Off Offline

Quote
@user Ranu: It doesn't work like that. You are NOT allowed to use something BEFORE you got permission! So if Lubo doesn't answer it's bad luck. You can't just use his stuff without permission.

If this is not about map protection and stealing things: We would have to see the Lua script(s) to help.

And there are at least 4 ways how Lua can crash CS2D:
• bugs in CS2D (or the scripts)
• bad/weird use of commands/hooks (bad parameters etc.)
• infinite loops (either direct or indirect via hooks)
• the scripts are too heavy and take too long to execute

The last two would probably lead to freezes, not to the exception error you got.

old Re: Max Entities?

Mami Tomoe
User Off Offline

Quote
It is map protection, read the last message on his console.
It's for when Lubo had a server with that map, the original [96] Jail.

It's map protection that can be removed (and I have removed it) but I wont tell you how, to prevent map theft.

old Re: Max Entities?

G3tWr3ck3d
User Off Offline

Quote
@user Mami Tomoe: whats so bad about it? He is trying to revive a server that was fun. At least he tries sharing is caring.
I might tell him how to disable the "protection" wich is kinda easy

old Re: Max Entities?

Ranu
User Off Offline

Quote
@user Mami Tomoe: If i revive this server again, CS2D will be revived, This server had 32/32 24hours, so i should revive it to revive cs2d,96, I do everything to revive cs2d, cs2d.net is dead forever, so i revive CS2D.
If lubo tell me to i close it, Be sure that i close it.

old Re: Max Entities?

Mami Tomoe
User Off Offline

Quote
Doing a crime in order to do something good isn't doing something good.

There are other more moral-friendly ways to revive the game, such as: MAKE YOUR OWN DAMN MAP.

Like really, if you care so much about reviving CS2D you should work on something of your own.
There are many great project ideas out there and if you're willing to use even one of them I'm sure you wont regret it.

old Re: Max Entities?

Quattro
GAME BANNED Off Offline

Quote
search for the string in code "you gotta go play the server morty" and you will find the protection function.

old Re: Max Entities?

Ranu
User Off Offline

Quote
@user Mami Tomoe: I wanted to make my own jail, but i hadn't tiles for my map, so i stopped working on it.

@user Quattro: Thanks for your attention, Done.
edited 1×, last 05.04.19 03:43:16 pm
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview