Posts: 12
Threads: 2
Joined: Jun 2010
I cant access my custom map scripts. Im trying to make a simple zombie map, but i cant read my custom map cgz (is that what im supposed to use when i want to change stuff on a map?) because it is in random symbols. im using a mac, so i know this is probably the reason, but theres got to be some way i can access those files where i can actually read what the script says! Help me please! (and im not a super experienced coder, so dont give me too complicated of an explanation of what to do :P)
Thanks!
Posts: 1,823
Threads: 20
Joined: Jun 2010
Editing can only be done in-game. Read the Dodd on how to edit your map configuration (make a copy of the default one and rename it). But you will get nowhere trying to edit the cgz by hand.
Posts: 12
Threads: 2
Joined: Jun 2010
Posts: 3,780
Threads: 33
Joined: Jun 2010
08 Sep 10, 08:14AM
(This post was last modified: 08 Sep 10, 03:46PM by V-Man.)
On the other hand, coding zombie-style rules into the map's cfg file is a piece of cake. Just ask Mael.
Posts: 638
Threads: 10
Joined: Jun 2010
The config's script-support is limited to only a few (map related) commands, which are listed at the default_map_settings.cfg. "Coding rules" there is not possible as far as I understand your idea.
After all, creating a real zombie-style mode requires real coding (C++)...
Posts: 3,780
Threads: 33
Joined: Jun 2010
One of which is "alias".
:-P
Posts: 638
Threads: 10
Joined: Jun 2010
08 Sep 10, 05:47PM
(This post was last modified: 08 Sep 10, 05:48PM by Mr.Floppy.)
I don't think so. ;)
// Possible commands that can be used in map configs are:
// ======================================================
// mapmodelreset, texturereset, mapmodel, texture, loadsky, fog, fogcolour,
// mapsound, mapsoundreset, shadowyaw, loadnotexture, watercolour.
Btw, there's still /ambient missing in that list.
Posts: 3,780
Threads: 33
Joined: Jun 2010
08 Sep 10, 06:18PM
(This post was last modified: 08 Sep 10, 06:19PM by V-Man.)
In fact, whoever made that default map cfg file forgot about
scontext.cfg Wrote:alias context_mapcfg 3
alias mapcfgidents [ alias loadnotexture loadsky mapmodelreset mapmodel texturereset texture fog fogcolour mapsoundreset mapsound watercolour shadowyaw ]
loop i (listlen $mapcfgidents) [
scriptcontext $context_mapcfg (at $mapcfgidents $i)
] and you can add "ambient" to that list if you want.
;)
Posts: 638
Threads: 10
Joined: Jun 2010
Oh, my bad. For some reason I expected this to be hardcoded. Though, adding parameters to that list would only enable those locally.
However, thanks for educating me! :)
Posts: 12
Threads: 2
Joined: Jun 2010
so it is possible to code something like making the CAS only have knives?
Posts: 3,780
Threads: 33
Joined: Jun 2010
10 Sep 10, 06:53AM
(This post was last modified: 10 Sep 10, 06:54AM by V-Man.)
<3 Mr.Floppy. It'd be a good idea to add "ambient" to the list in the SVN and make it default in the next release.
@GreaterBeing: I'd hate to use the term impossible... But I can't see a practical way of coding a knife-only mode using CubeScript in a map cfg file. You would definitely need the willingness and cooperation of all clients who use the mode, since I believe having "alias" in the scontext.cfg file means the map config file can only define the alias, not necessarily run all the commands inside it. Thus, the clients would have to cooperate by typing the name of the alias(es) you defined in the map cfg file in order for it to work.
You'd have to consider the possibility of players choosing not to type the command.
Posts: 1,438
Threads: 54
Joined: Jun 2010
Greater; that would have to be a server mod and i believe that would need you to learn C++
Posts: 3,780
Threads: 33
Joined: Jun 2010
Making it a server mod would definitely be more plausible. GG DrauL.
Posts: 12
Threads: 2
Joined: Jun 2010
yeah thats what im planning on doing. Its going to be awhile because i need to get a cheap computer that i wouldnt worry about being damaged too much, but i also dont know all the risks. Is it possible for people to damage more than the computer thats running the server via accessing your internet or is it completely safe? That would be the only thing keeping me from making a zombie server
Posts: 3,462
Threads: 72
Joined: Jun 2010
I have never heard of a server owner getting hacked. I think the extent that they could go is by going on to your computer and viewing it. Which, if you dont mind (as with a crappy computer) you could do. Now, you can just run it off of your normal computer with a different user running it, with very restricted settings. You should talk with someone more experienced than me about this though.
Posts: 1,436
Threads: 7
Joined: Jun 2010
As long as you don't make fundamental programming or implementation errors, it should be perfectly safe to run the server on your normal computer.
Posts: 3,780
Threads: 33
Joined: Jun 2010
You never know.
But so far so good. ;-)
Posts: 12
Threads: 2
Joined: Jun 2010
13 Sep 10, 01:23AM
(This post was last modified: 13 Sep 10, 01:45AM by GreaterBeing.)
ok thanks everyone i will try my best to make a simple zombie mod at the least going as close to 24/7 as i can by the end of the school year. Thanks so much for the info!
the only reason it is going to take so long is because i will have to learn whatever language the servers run on (i guess its C++)
|