Forum

> > Off Topic > CS2D idea that would fix weapon naming
Forums overviewOff Topic overviewLog in to reply

English CS2D idea that would fix weapon naming

10 replies
To the start Previous 1 Next To the start

old CS2D idea that would fix weapon naming

Majatek
User Off Offline

Quote
We all know how the internal resources of CS2D are non-moddable (unless you sup3r 1337 h4x, which really is against the rules and makes DC unhappy - at least I think so), but I had a recent idea. It was spawned from messing around with some Java scripts.

How about CS2D, which uses internally-stored strings to use as text on the screen in game play, loads a text file that holds all of the string/names used in the game? This would be used as what many would know as a "language file".

The internal structure is just a list of strings, such as:
More >
(etc)

If no language file is found, then the strings that are already hardcoded into the game will not be replaced on run-time (easy changeable string pointers - I know it can be done in code, and written into the game within 5-10 minutes)
If however there is a language file, it will replace (client sided of course) all of the strings within the executable, with the strings from the language file in consecutive order.

This would solve these problems:
+People of foreign languages would not be limited to English as a language
+Modders would be able to change resource names for in-game texts without editing the code of the game

old Re: CS2D idea that would fix weapon naming

StirlizZ-Fapicon
Super User Off Offline

Quote
DC make strange noise, when I`m suggest that.
Noise was look like "...n-m-n-m-n it`s too long and hard n-m-n-m-n..."


But I +1 to this idea again

(added 5 mins later)
No, It`s not same as my idea - I suggested add new languages, but you suggest just use 1 moddable language file.

+1!

old Re: CS2D idea that would fix weapon naming

J4x
User Off Offline

Quote
I was thinking in something like changeable weapon names via console commands, like
1
sv_weaponname "id" "name"

1
mp_weaponname "id" "name"
Imo it would be simple and better tha a txt file
edited 1×, last 12.06.11 06:42:59 pm

old Re: CS2D idea that would fix weapon naming

Majatek
User Off Offline

Quote
user J4x has written
I was thinking in something like changeable weapon names via console commands, like
1
sv_weaponname "id" "name"

1
mp_weaponname "id" "name"
Imo it would be simple and better tha a txt file

That would be alright, but each time you start CS2D up again, you'd need to enter the command again.

old Re: CS2D idea that would fix weapon naming

Yates
Reviewer Off Offline

Quote
user Majatek has written
user J4x has written
I was thinking in something like changeable weapon names via console commands, like
1
sv_weaponname "id" "name"

1
mp_weaponname "id" "name"
Imo it would be simple and better tha a txt file

That would be alright, but each time you start CS2D up again, you'd need to enter the command again.

A matter of copy and paste.

mp (Or whatever you will use)_weaponname 1 Gaypistol; mp_weaponname 2 Anothergaypistol; etc.
But, I like your idea more.

user StirlizZ-Fapicon has written
"...n-m-n-m-n it`s too long and hard n-m-n-m-n..."

omnomnomn? Lol.
edited 1×, last 12.06.11 07:05:33 pm

old Re: CS2D idea that would fix weapon naming

Majatek
User Off Offline

Quote
user RAVENOUS has written
And what does that have to do in "Off-topic"?

I checked the rules, and that is where DC requested me to post this.
And so I did.

If you want to ask why that is like so, go ask him not me.
Besides - Isn't it rather off-topic compared to other things? I mean... It's rather obvious. Oh, and if you're going to go and start larking on about forum rules and where things should be posted, just stop. You're not a moderator.
There's moderators that take care of that.
And in fact, read the rules while you're at it, because it clearly states that "spam/offtopic/closes" posts are counted as spam.
Just thought you aught to know

user Alistaire has written
You could also use the Mp_weaponname stuff in a script, just like you can do with Mp_buildinglimit

But if that method is used, and someone who is new to coding ends up screwing up a piece of code to be run at the beginning of the game will cause errors.
My "language file" way is the safest possible option in the form that it doesn't actually parse or run any script, only replacing strings with other strings to be displayed during run time.
edited 3×, last 12.06.11 07:44:51 pm

old Re: CS2D idea that would fix weapon naming

KimKat
GAME BANNED Off Offline

Quote
I'd love dynamic temporary value changes of weaponry, indeed. This would bring the possibility to create different type of mods, such as WW2 mods using WW2 weapons just as a example. I am for the idea.
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview