Forum

> > CS2D > General > Ideas for CS2D - READ THE FIRST POST (OP)!
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Ideas for CS2D - READ THE FIRST POST (OP)!

3,231 replies
Page
To the start Previous 1 2156 157 158161 162 Next To the start

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Mami Tomoe
User Off Offline

Quote
Ability to give buildings in the editor more configuration, such as:

Portals to be connected to another portal (similar to trigger and names in the editor)

Supplies to have an option to choose an ID that'll spawn the appropriate item ID based on server config or force a specific item to spawn.

ETC.



EDIT:
I feel like the current CS2D Lua is quite outdated and messy, maybe you guys should add a toggle switch in the server options called
sv_use_legacy_lua
.

It would be on by default but when it's disabled things would change to be in a more dated format.

Such as:
Legacy hook:
endround

Non legacy hook:
pre_endround

And it will add a new hook called
endround
that will be called exactly when the round actually ends (and not when the round is attempting to end (such as in a round draw).

This would allow a whole lot of Lua modifications without breaking support for previous scripts.

Another example would be to finally organize the way some commands and functions work in terms of parameters and basically make everything a whole lot easier to remember and code.


EDIT:
Lua command:
getserverinfo(IP, PORT, INFO_TYPE)

For example:
getserverinfo('1.2.3.4', '12345', 'sv_name')

Will return the server's name (this of course wont work for stuff like
'sv_password'
).
There could be a limit of like 100 requests from a server every minute of course (internally).
This would also be controlled by the remote flood protection.

And a security option for the server:
mp_serverinfowhitelist

Example:
1
parse('mp_serverinfowhitelist 1.2.3.4,4.3.2.1,6.9.6.9')
Only those servers can get information from that server.
By default that list only includes
127.0.0.1
.
edited 2×, last 15.05.20 10:32:13 am

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Mami Tomoe
User Off Offline

Quote
@user The Dark Shadow: It will DROP whats not supposed to connect, duh.

EDIT:

Allowing higher quality sprays? Is it time yet?
64x64 sprays that'll work in 64x64 tile sized maps.
Allowing PNG format (as it is a lot easier to compress than BMP)
Allowing white color (default), or any RGB coded color.
edited 1×, last 20.05.20 04:14:32 pm

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

cs2d_is_a_Gem
User Off Offline

Quote
leave laziness and finally update the horrible menus of cs2d, these menus simply never change and we still use the prototypes from the first time cs2d 1.0 . add more animations, add more spaces in chat.

Look for more moderators who punish criminals, since here nobody respects anyone, don't be afraid of changes, change the administrator for a more efficient and less lazy one.


It really bothers me to see that users are not registering their files or are afraid to ask something thanks to headless people like this or the one who wrote the previous comment here.
(There's nothing stupid about asking about something you don't know.)

Dc with all respect, you could allow your team to work on this, I know you would get the attention of more players, you can make several prototypes and publish them in a survey, to select the most appropriate for cs2d.

drop all other projectsfor 1 month or 2 and focus on the us.de gem.


Big Udate fpr cs2d 2021 plis
edited 5×, last 22.05.20 08:07:27 pm

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

The Dark Shadow
User Off Offline

Quote
user cs2d_is_a_Gem So those CS2D developers have to repeat it again and again and again? SQ is working on the mobile version, DC is working on Stranded III. None of them have time to update it. Even expect if they weren't busy, What they could do? There would be nothing to revive CS2D again more than developing CS2D 2 which will never happen.

Also, btw so why are you begging DC to promote you to a moderator, that will never happen though.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Gaios
Reviewer Off Offline

Quote
I once read that new CS2D has hardcoded English language now.. well.. it's ok but we still can't have custom weapons at the servers and this stuff might help server owners to deploy better mods.

Why did I mention hardcoded English language? Listen.. I know we have got new stuff to manipulate weapons' firerate in sys/weapons.cfg and sys/weapons_recoil.cfg but we still can't change weapon name . Well.. if we could change weapon name, we actually could mod servers with new custom weapons.

From the other hand we may have another config file which will contain only new weapons that we might create by custom gfx and sfx files. Note: those files should be always required in servertransfer.

And one more stuff.. pls add firerate stuff for melee weapons yet I would have a melee weapon which can't attact, so I can use it to create GUI *click*.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

SQ
Moderator Off Offline

Quote
@user The Dark Shadow: I'll update on new version of CS2D quite soon. I'm slightly busy with my work stuff currently. Next month should be less stressful, so be prepared for multiple blogs/vlogs on the development.
I don't want to add more features into CS2D as it is really huge task to squeeze it from the old game engine.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

TobyInChina
User Off Offline

Quote
user SQ has written
@user The Dark Shadow: I'll update on new version of CS2D quite soon. I'm slightly busy with my work stuff currently. Next month should be less stressful, so be prepared for multiple blogs/vlogs on the development.
I don't want to add more features into CS2D as it is really huge task to squeeze it from the old game engine.


@SQ can you UTF-8 menu and say hook please?

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

SQ
Moderator Off Offline

Quote
@user SQ: Perhaps I can make a new hook that pass a string in UTF-8 format.

It would return string like in this file:
http://unrealsoftware.de/files_show.php?file=17595

The implementation could look like:
1
2
3
4
5
6
addhook("sayUTF8", "sayUTF8")
sayUTF8(id, text) -- text equals "x43x53x32x44" and refers to "CS2D"

if (utf8.convert("CS2D")==text) then
 -- DO
end

Btw, does "UTF-8:" feature still work?
edited 1×, last 27.05.20 12:43:05 am

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

TobyInChina
User Off Offline

Quote
user SQ has written
@user SQ: Perhaps I can make a new hook that pass a string in UTF-8 format.

It would return string like in this file:
http://unrealsoftware.de/files_show.php?file=17595

The implementation could look like:
1
2
3
4
5
6
addhook("sayUTF8", "sayUTF8")
sayUTF8(id, text) -- text equals "x43x53x32x44" and refers to "CS2D"

if (utf8.convert("CS2D")==text) then
 -- DO
end

Btw, does "UTF-8:" feature still work?


yes please ,thank you。
Its work!

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

VADemon
User Off Offline

Quote
No. Lua doesn't need anything except for the utf8 helper functions from 5.2 and 5.3 (updated) for string processing (regex, and multibyte character sub).
Lua does not modify strings in any way, they may hold binary data too. As long as strings are passed to Lua correctly (external APIs + "correct" encoding in the text editor (correct with regards to the application) everything will work perfectly fine.
I think the only problem is that CS2D is not consistent with encodings internally.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

MikuAuahDark
User Off Offline

Quote
Instead of having separate hooks that support UTF-8, why not make everything support UTF-8 instead. Sadly this means lots of server info and scripts to break as they were written with Windows-1252 charset in mind. However quick testing shows me that converting Windows-1252 (A0...FF) to UTF-8 should be straightforward.

A better option would be having server setting (in a separate file, loaded before anything else) that tells whetever it should use UTF-8 or fallback to Windows-1252.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

SQ
Moderator Off Offline

Quote
@user MikuAuahDark: as far as I know, last supported Lua implementation for BlitzMax does not support UTF-8. Once you try to pass 16bit character from Lua interface to BlitzMax API, it only passes one byte instead. That's at least what I do remember from testing. The only available version for BlitzMax is 5.14.

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

VADemon
User Off Offline

Quote
https://blitzmax.org/docs/en/language/strings/
Quote
Strings are used to store sequences of characters.

FromBytes:String( bytes:Byte Ptr,length )     Creates a string from a sequence of length 8 bit bytes.

This is the only function that should be used when receiving Strings from the Lua-side. Assuming (and it looks so by this description) that BlitzMax doesn't touch the encoding of the string, this should fix the problem.
...
https://github.com/blitz-research/blitzmax/blob/master/mod/pub.mod/lua.mod/lua.bmx
All the relevant function appear to be using String.fromBytes() for creating Strings on the BlitzMax-side (and there are multiple comments about "not converted" and "no 0x00". I'd just check if the library version you have does have all the same String constructors and after that suspect the issue in CS2D API/wrappers/network that uses other String object constructors (Everything that's not fromBytes).

old Re: Ideas for CS2D - READ THE FIRST POST (OP)!

Mami Tomoe
User Off Offline

Quote
A grid mode for the server list menu (optional can be changed in settings).

Viewing the server list on big screens is a bit tedious nowadays when most of the server item line is blank and unused due to my wide screen.
To the start Previous 1 2156 157 158161 162 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview