USman Posted June 23, 2010 Report Share Posted June 23, 2010 It is summer and time to learn a new skill... scripting ! I am going to experiment on Hoppah's LA mod. First off what is a good script editing, writing program that is free? or can it just be done in like notebook? As I work and experiment I plan to post problems and hope for solutions. I want to thank all of those who help and offer tips now. And with that I shall begin. Thanks again Thanks, USman Quote Link to comment Share on other sites More sharing options...
Guest Francis Posted June 23, 2010 Report Share Posted June 23, 2010 I suggest Notepad2 which is a light-weight and faster version of Notepad++. Get Notepad2 here. Quote Link to comment Share on other sites More sharing options...
USman Posted June 23, 2010 Author Report Share Posted June 23, 2010 I suggest Notepad2 which is a light-weight and faster version of Notepad++. Get Notepad2 here.Thanks alot step one complete! . Okay now i went in and tried to change LAfirestationstart.script and i think I got but an error message popped up and said save denied. Are Hoppah's script files locked too?I geet a message like thisError saving access denied so? Quote Link to comment Share on other sites More sharing options...
RedHawk504 Posted June 23, 2010 Report Share Posted June 23, 2010 Thanks alot step one complete! . Okay now i went in and tried to change LAfirestationstart.script and i think I got but an error message popped up and said save denied. Are Hoppah's script files locked too?Hoppah's files are not locked u can edit it as many time u want. Quote Link to comment Share on other sites More sharing options...
Guest Francis Posted June 23, 2010 Report Share Posted June 23, 2010 If you are on Vista or on Windows 7, you may need to the set the access to your account so you can actually save them. Make sure no other program uses the files too. Quote Link to comment Share on other sites More sharing options...
USman Posted June 23, 2010 Author Report Share Posted June 23, 2010 If you are on Vista or on Windows 7, you may need to the set the access to your account so you can actually save them. Make sure no other program uses the files too.Yup that is what I had to do. I found it on another topic but thanks anyway! Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted June 23, 2010 Report Share Posted June 23, 2010 Thanks alot step one complete! . Okay now i went in and tried to change LAfirestationstart.script and i think I got but an error message popped up and said save denied. Are Hoppah's script files locked too?I geet a message like thisError saving access denied so?I would suggest disabling UAC. USer Account Control is so annoying.And im with Francis in regards to using Notepad2. I been using this for years now as my former favorite program, crimson editor, was no longer being updated.However theres nothing out there that will trully write a script for you. Theres a mission script generator around here some where, but it only does very basic missions, and I have a feeling even then, your going to end up editing the script on your own to some extent to get it working. Quote Link to comment Share on other sites More sharing options...
Guest Francis Posted June 23, 2010 Report Share Posted June 23, 2010 Using script generators is a really bad practice. Of course it can be a good start if you don't know how to start your mission script and have no other script to take a look at, but you'll definitely end up editing it yourself. Quote Link to comment Share on other sites More sharing options...
USman Posted June 23, 2010 Author Report Share Posted June 23, 2010 I have seen the topic with the mission script generator and just figured it would be easier to learn through experimenting, thanks to explore4x4 I have begun. I am working on the LA mod "replace a vehicle at a station." It's going okay everything works other then when it is called by the BC, so still working on that. I eventually want to put in limited water supply in the game, but have a ways to go.Thanks again, USman EDIT: BC can now call my HESEDIT 2: Attempting to allow police to call in BCEDIT 3: HELP, I get an error message while loading the editor saying Limitation statement too long and sends me to line 71 whick contains GameObjectList SelectPer = Game::GetSelectedGameObjects(); solved Quote Link to comment Share on other sites More sharing options...
USman Posted June 28, 2010 Author Report Share Posted June 28, 2010 Okay so this has been a slow and stressful start. I have abandoned the EMS calling BC script for now. I am going to try really hard to work at the SWAT shooting MP5 like a pistol. The Idea was given to me by Dyson, hope I can get it working, I hope for help when I need it!Thanks, USman Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted June 29, 2010 Report Share Posted June 29, 2010 We need more then one line of the script. The thing is sometimes it may say line 71 but the problem is actually line 73, or 69. Usually its right on but it can be off. Quote Link to comment Share on other sites More sharing options...
USman Posted June 29, 2010 Author Report Share Posted June 29, 2010 (edited) Line 60 to line 79:SetSelfClickActivation(true); SetHighlightingEnabled(false); SetGroupID(CGROUP_GETEQUIPMENT); SetGroupLeader(true); } bool CheckPossible(GameObject *Caller) { GameObjectList SelectPer = Game::GetSelectedGameObjects(); if (SelectPer.GetNumObjects() != 1) return false; Person p.(Caller); if(p.IsValid() && (p.IsLinkedWithPerson() || p.IsCarryingPerson() || p.IsEquipped() || p.IsPulling() || p.GetFirehoseID()!=0 || p.GetEnteredCarID() != -1)) return false; if (p.IsCurrentAction("EActionTreatPerson")) return false; if (!Caller->IsValid() || Caller->GetType() != ACTOR_PERSON) return false;Could someone tell me how to put in spoiler tags?Thanks, USman Edited June 29, 2010 by Lithium added spoiler and code Quote Link to comment Share on other sites More sharing options...
Lithium Posted June 29, 2010 Report Share Posted June 29, 2010 Could someone tell me how to put in spoiler tags?Thanks, USman Done. Use the [ spoiler] and [ /spoiler] tags without the spaces. Use [ code] and [ /code] for code colouring. Quote Link to comment Share on other sites More sharing options...
USman Posted June 29, 2010 Author Report Share Posted June 29, 2010 Thank you very much! Quote Link to comment Share on other sites More sharing options...
USman Posted July 2, 2010 Author Report Share Posted July 2, 2010 Okay so I can change vehicles around no problem now! I am still working on the other two scripts but feel I made a large jump. So I am asking what would the step up from moving around vehicles be?Thanks, USman Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted July 2, 2010 Report Share Posted July 2, 2010 It really depends on what you want to add to the mod. You could do something like using the lafirestation.script to create a police station control panel. I planed to do this ages ago but just never bothered. You could try adding another FS, but thats pretty tricky. Quote Link to comment Share on other sites More sharing options...
USman Posted July 3, 2010 Author Report Share Posted July 3, 2010 Thats a good idea i like i will give it a whirl, also i am going to play around with VOs and see if i can get an outside station for USFS.Thanks, USman Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted July 3, 2010 Report Share Posted July 3, 2010 Yes an outside stations not to hard. Its when you try to edit the gates that it becomes a pita. Quote Link to comment Share on other sites More sharing options...
USman Posted July 4, 2010 Author Report Share Posted July 4, 2010 Well I decieded to add a military base, I would like to have the army general submod, but I also want the additional units so I am waiting on a comment by soulbody to see what I need to change to make them compatible Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted July 4, 2010 Report Share Posted July 4, 2010 Well basically you need to open the xml files in lang and specs from the mod and the submod, and compare them using somehting like windiff(i prefer araxis merge personally) and simply add the missing lines to the XMLs inside the mods folder. Other then that, off the top of my head, the rest is drag and drop. Quote Link to comment Share on other sites More sharing options...
USman Posted July 4, 2010 Author Report Share Posted July 4, 2010 okay I can do that! I think. lol, The base looks neat just need to write the script now!Happy 4th! USman Quote Link to comment Share on other sites More sharing options...