07-01-2009, 07:38 PM | #41 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
I removed it and that map still doesn't seem to work.
|
|
07-01-2009, 07:39 PM | #42 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Then paste the console error(s) again.
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
07-01-2009, 07:41 PM | #43 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
execing config.cfg
Can't use cheat cvar dsp_dist_max in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar dsp_dist_min in multiplayer, unless the server has sv_cheats set to 1. Can't use cheat cvar r_ambientfraction in multiplayer, unless the server has sv_cheats set to 1. 2 CPUs, Frequency: 3.0 Ghz, Features: GenuineIntel SSE SSE2 MMX RDTSC CMOV FCMOV Client/Server up to date execing valve.rc maxplayers set to 4 Unknown command "cr_civilian" maxplayers set to 4 Network: IP 98.231.201.74, mode MP, dedicated No, ports 27015 SV / 27005 CL Spawn Server koth_classic Begin loading faces (loads materials) End loading faces (loads materials) [SCRIPT] Attempting to start up the entity system... [SCRIPT] Entity system initialization successful. [SCRIPT] Loading Lua File: maps/includes/base.lua [SCRIPT] Successfully loaded maps/includes/base.lua [SCRIPT] Loading Lua File: maps\koth_classic.lua Error loading maps\koth_classic.lua: [string "maps\koth_classic.lua"]:300: ')' expected near 'fullresupply' [EntSys] Entity System Helper Spawned Executing listen server config file SENTENCEG_Init: precached scripts/sentences.txt SENTENCEG_Init: precached scripts/sentences_common.txt SV_StartSound: npc/headcrab/headcrab_burning_loop2.wav not precached (0) SV_StartSound: ambient/fire/fire_small_loop2.wav not precached (0) player/demoman/demoman.mdl/player/ff_player_shared.mdl : missmatched parent bones on "ffSkel_Hips" player/medic/medic.mdl/player/ff_player_shared.mdl : missmatched parent bones on "ffSkel_Hips" player/hwguy/hwguy.mdl/player/ff_player_shared.mdl : missmatched parent bones on "ffSkel_Hips" player/pyro/pyro.mdl/player/ff_player_shared.mdl : missmatched parent bones on "ffSkel_Hips" SV_StartSound: npc/headcrab/headcrab_burning_loop2.wav not precached (0) SV_StartSound: ambient/fire/fire_small_loop2.wav not precached (0) SV_StartSound: npc/headcrab/headcrab_burning_loop2.wav not precached (0) SV_StartSound: ambient/fire/fire_small_loop2.wav not precached (0) Attempted to create unknown entity type info_tfdetect! Can't init info_tfdetect couldn't exec listenserver.cfg couldn't exec koth_classic.cfg Section [Scenes]: 1096 resources total 17.54 KB, 0.84 % of limit (2.10 MB) -------------- Omni-bot Init ---------------- Omni-bot Loading: LoadLibrary Failed with Error: The specified module could not be found. Omni-bot Loading: Looking for omni-bot\omnibot_ff.dll, Omni-bot Loading: LoadLibrary Failed with Error: The specified module could not be found. Omni-bot Loading: Looking for .\omni-bot\omnibot_ff.dll, Omni-bot Loading: LoadLibrary Failed with Error: The specified module could not be found. Omni-bot Loading: Looking for omnibot_ff.dll, --------------------------------------------- 4 player server started Adding master server 69.28.140.247:27011 Adding master server 68.142.72.250:27011 Client "[TALOS]DudeWheresMyMedic" connected (127.0.0.1:27005). Connected to 127.0.0.1:27015 [VERSION] Server: 2.3 |
|
07-01-2009, 08:18 PM | #44 | ||
D&A Member
Wiki Team Fortress Forever Staff Join Date: Apr 2007
Posts Rated Helpful 31 Times
|
Bridget: whitespace doesn't matter.
Quote:
But I see some other problems. Quote:
You also have player_ondamage defined twice, and maybe some other stuff too. If you define something twice, only the last one will have any effect. If you want functionality from both, you have to combine them into one. This is a danger when you copy-paste code. |
||
|
07-01-2009, 08:25 PM | #45 |
Wiki Team
Fortress Forever Staff Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly Gametype: PAYLOAD Affiliations: DET- Posts Rated Helpful 19 Times
|
lol...nevermind, carl beat me again
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf (Beta) alchimy_b1 (Lua) base_payload_2015 (Models) props_trainyard |
|
07-01-2009, 08:26 PM | #46 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
Good God Carzycarl that was mad skill, I didn't know how the lua was so exact that one comma missing cause the whole map to fail. the map is playable now and after I do this pickup going to get my friend and we will test it. Thank you.
|
|
07-01-2009, 08:38 PM | #47 |
D&A Member
Wiki Team Fortress Forever Staff Join Date: Apr 2007
Posts Rated Helpful 31 Times
|
Commas are very important to computers. In the future, if you forget to use a comma, robots will crush you.
|
|
07-01-2009, 09:02 PM | #48 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
LoL, ok. Bad news quad damage doesn't work, rocket jump hurts, fall damage hurt, I'm thinking of droping this LUA its not working together well.
|
|
07-01-2009, 10:32 PM | #49 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Post your current lua (use [code][/code] tags or www.privatepaste.com).
Making a new gametype requires work. All the stuff you're asking for is possible, it's just that you have to help us so that we can help you. Everytime you have a problem, make sure to post your lua and any [SCRIPT] error messages the console gives you and we will be able to help you. Otherwise, there's no hope.
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington Last edited by squeek.; 07-01-2009 at 10:32 PM. |
|
07-01-2009, 10:39 PM | #50 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
|
|
07-01-2009, 11:54 PM | #51 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Replace the top player_ondamage function with:
Code:
function player_ondamage( player, damageinfo ) -- Entity that is attacking local attacker = damageinfo:GetAttacker() -- shock is the damage type used for the trigger_hurts in this map. Must be allowed to kill players :) if damageinfo:GetDamageType() == Damage.kShock then return EVENT_ALLOWED end -- If no attacker do nothing if not attacker then damageinfo:SetDamage(0) return end -- If attacker not a player do nothing if not IsPlayer(attacker) then damageinfo:SetDamage(0) return end local playerAttacker = CastToPlayer(attacker) -- If player is damaging self do nothing if (player:GetId() == playerAttacker:GetId()) or (player:GetTeamId() == playerAttacker:GetTeamId()) then damageinfo:SetDamage(0) return end -- If the attacker is in the quad area, give quad damage if quad_collection:HasItem( playerAttacker ) then damageinfo:SetDamage(damageinfo:GetDamage() * DAMAGE_BONUS) end end Code:
----------------------------------------------------------------------------- -- Damage event - Add Quad Damage -----------------------------------------------------------------------------
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
07-02-2009, 03:41 AM | #52 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
Okay nice, the rocket damage works and no fall damage as well, but the QUAD damage seem to be on and not when someones on the trigger.
|
|
07-02-2009, 04:01 PM | #53 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
|
|
07-02-2009, 09:03 PM | #54 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Any errors in the console when you step into the trigger?
EDIT: It doesn't look like you did what I said. You can only have ONE player_ondamage in a lua, otherwise one will get overwritten by the other. Here's the correctly modified lua: http://www.privatepaste.com/d30VquPOJd (Make sure to click "Copy content" to get the plain text instead of the text and line numbers).
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington Last edited by squeek.; 07-02-2009 at 09:06 PM. |
|
07-04-2009, 11:26 AM | #55 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
Okay, you want me to post the console error? from every test? The Quad Damage still on for all without touching the trigger.
|
|
07-04-2009, 04:52 PM | #56 |
Wiki Team
Fortress Forever Staff Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly Gametype: PAYLOAD Affiliations: DET- Posts Rated Helpful 19 Times
|
nah just post one, if there is an error, we should be able to find it from any console log
Edit: Also please copy and paste the .lua your currently running, even if it's in an earlier post...just go ahead and copy it all and paste it at private paste again just so we can look through it. You might have copied something wrong and not even know it. Or missed something or something.
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf (Beta) alchimy_b1 (Lua) base_payload_2015 (Models) props_trainyard Last edited by Dr.Satan; 07-04-2009 at 04:54 PM. |
|
07-06-2009, 12:12 PM | #57 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
|
|
07-06-2009, 10:36 PM | #58 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
[SCRIPT] Error calling oninactive ([string "maps\koth_classic.lua"]:291: attempt to index global 'zone_collection' (a nil value)) ent: quadarea
[SCRIPT] Error calling onendtouch ([string "maps\koth_classic.lua"]:277: attempt to index global 'zone_collection' (a nil value)) ent: quadarea |
|
07-06-2009, 10:39 PM | #59 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
That's what I get for copy+pasting and not using my brain.
Fixed version: http://www.privatepaste.com/980UPcqFhz
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
07-06-2009, 11:40 PM | #60 |
Join Date: Jan 2009
Posts Rated Helpful 0 Times
|
LoL, I'll test this after pickup. Thanks for your time.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|