Fortress Forever

Go Back   Fortress Forever > Projects > Fortress Forever > Feature

Default Lua File? Issue Tools
issueid=256 01-09-2010 05:36 PM
Banned
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
Issue Type Feature
Project Fortress Forever
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 09: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.
Reply
01-09-2010 10:29 PM
WhenNailGrenWillOut?
 
Mod the compile tools to make it output a default .lua file for the map?


Sounds cool.
Reply
01-09-2010 10:39 PM
Banned
 
No, that's not what I suggested.
Reply
01-09-2010 10: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
Reply
01-10-2010 11:33 AM
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.
Reply
01-11-2010 01:37 PM
AKA LittleAndroidMan
 
That's a pretty good idea.
Reply
01-11-2010 03:21 PM
sKeeD
 
Finally bridget! A Good Idea!!!
YAYYY


:)
Reply
01-18-2010 06: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

Reply
01-18-2010 10:26 AM
Gets tickled by FF
 
YAY, about f*in time for all us mappers with multiple build versions :D
Reply
01-18-2010 10:32 AM
Banned
 
I came.
Reply
01-18-2010 03:19 PM
 
Very good work. But what if it's a AvD map that is missing the .lua ?
Reply
01-18-2010 03:22 PM
Banned
 
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.
Reply
01-18-2010 04:02 PM
internet user
 
Yea, it just enables teams and classes so you can actually run around the map etc
Reply
01-20-2010 04:32 PM
WhenNailGrenWillOut?
 
Nice job dude. Now we gotta wait for 2.41 to try it out for ourselves?
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT. The time now is 09:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.