01-09-2010 06:36 PM
|
|
Default Lua File?
Currently, a map-maker must include a Lua file with his map defining the team limits and class limits or use IncludeScript() to import a functioning Lua script file in order for it to function at some generic level for testing. This becomes a hassle when you want to just load up Hammer, create something, and test it 'out of the blue'. In addition, this becomes a hassle to people learning how to map. When they find out their map is unplayable, well, they go insane and think "My God, Valve Hammer is broken!" then people tell them about this 'Lua Business' and they go comatose.
So, my suggestion is as follows: If possible, the game should use the base_teamplay lua file by default if it fails to find a corresponding .lua file for your map. That's all, really. I hope it's possible. I hope you consider it. Actually, I'm demanding it. Demanding it. Include this in 2.41 or suffer the consequences, Squeek. GOOD DAY.
|
|
Issue Details
|
Category LUA (Map Scripting)
Status Implemented
Priority 8
Suggested Version Undefined
Implemented Version (none)
Votes for this feature
5
Votes against this feature
0
Assigned Users
Dexter
Tags
(none)
|
|
01-09-2010 10:34 PM
|
|
internet user
|
|
|
I think it would be simple enough to load a default such as base_teamplay.lua if there are no map specific files found.
though, my only question is if a global script should still apply.
|
01-09-2010 11:29 PM
|
|
WhenNailGrenWillOut?
|
|
|
Mod the compile tools to make it output a default .lua file for the map?
Sounds cool.
|
01-09-2010 11:39 PM
|
|
No, that's not what I suggested.
|
01-09-2010 11:40 PM
|
|
internet user
|
|
|
Quote:
Originally Posted by moosh
Mod the compile tools to make it output a default .lua file for the map?
Sounds cool.
|
nooo, have the engine load base_teamplay (or whatever) lua if the map has no lua file. so if you wanna shit a box in hammer and test it you dont have to copy paste another file
|
01-10-2010 12:33 PM
|
|
Gets tickled by FF
|
|
|
this has definitely been brought up before somewhere and I'd still like to see it done.. I think we agreed that we'd need a message in console to state that its not loading from a file however.
|
01-11-2010 02:37 PM
|
|
AKA LittleAndroidMan
|
|
|
That's a pretty good idea.
|
01-11-2010 04:21 PM
|
|
sKeeD
|
|
|
Finally bridget! A Good Idea!!!
YAYYY
:)
|
01-18-2010 07:41 AM
|
|
internet user
|
|
|
Ok I implemented it. Not sure whether to make it super obvious with a HUD notification or something. I just made it say something in console
|
01-18-2010 11:26 AM
|
|
Gets tickled by FF
|
|
|
YAY, about f*in time for all us mappers with multiple build versions :D
|
01-18-2010 11:32 AM
|
|
I came.
|
01-18-2010 04:19 PM
|
|
Very good work. But what if it's a AvD map that is missing the .lua ?
|
01-18-2010 04:22 PM
|
|
The suggestion was for the default lua file to allow basic map testing, not act as a legitimate gamemode. You would still have to define one or make one via Lua.
|
01-18-2010 05:02 PM
|
|
internet user
|
|
|
Yea, it just enables teams and classes so you can actually run around the map etc
|
01-20-2010 05:32 PM
|
|
WhenNailGrenWillOut?
|
|
|
Nice job dude. Now we gotta wait for 2.41 to try it out for ourselves?
|
All times are GMT. The time now is 12:18 AM.