dayzlauncher Posted July 26, 2014 Report Share Posted July 26, 2014 https://gist.github.com/maca134/d959907cb974a90826eb Run the script however you run scripts. PS. Might be a cool idea for people to share bases? Nekuan, axeman, ispan55 and 9 others 12 Link to comment Share on other sites More sharing options...
Semezky Posted July 26, 2014 Report Share Posted July 26, 2014 OH MY KIND THIS IS SOME KIND OF MAGIC! Now I'm going to copypaste all bases on my server. Just because I can. Chainsaw Squirrel 1 Link to comment Share on other sites More sharing options...
peipo118 Posted July 26, 2014 Report Share Posted July 26, 2014 Was watching the video when i thought "oh the 14 posts guy has stolen the CCG stuff, he is a noob for sure"... Then i saw the good work and thought, hmm maybe it is a CCG scripter... And then i saw pink bubbles and i knew : Maca is back in tha house!! :P Decent work man, maybe it would be interesting to integrate and save the copied bases in the database (there might be problems with the bigger strings then though..) I will fiddle around with this a little thx for sharing ;) Chainsaw Squirrel 1 Link to comment Share on other sites More sharing options...
dayzlauncher Posted July 26, 2014 Author Report Share Posted July 26, 2014 Decent work man, maybe it would be interesting to integrate and save the copied bases in the database (there might be problems with the bigger strings then though..) It does save to the database :) Link to comment Share on other sites More sharing options...
peipo118 Posted July 26, 2014 Report Share Posted July 26, 2014 No I am talking about the actual saved bases :) Saving them in database as a long text and then call compile that text again when you want to insert them again.. Of course that is maybe a lot more work than it is worth, but it would allow to store a pot of different base types in a database from where you could easily access them again.. If i get the time and inspiration to do some menus to name the bases and save/read them i will send it to you so you can add it if you want ;) cheers Link to comment Share on other sites More sharing options...
dayzlauncher Posted July 26, 2014 Author Report Share Posted July 26, 2014 When you copy a base, it saves the objects to the logs: And you can then copy that into the script to add other structures. Link to comment Share on other sites More sharing options...
boyd Posted July 26, 2014 Report Share Posted July 26, 2014 Looks amazing :D Link to comment Share on other sites More sharing options...
peipo118 Posted July 26, 2014 Report Share Posted July 26, 2014 When you copy a base, it saves the objects to the logs: And you can then copy that into the script to add other structures. Ye i know thx :) Would just be cool to have it done live with database interaction ;) Good job anyway, i like it.. Care to explain how to do custom ones please? :) To do custom ones just build a base and then apply the script on it to copy it.. Then add it in the BCBaseList array in this form BCBaseList = [ ["name1","additional info", [0,0,0] //offsets as Maca said , [....the base info like you copied it from .rpt...] ], [next base], etc]; xBowBii 1 Link to comment Share on other sites More sharing options...
dayzlauncher Posted July 26, 2014 Author Report Share Posted July 26, 2014 Maybe is would be cool if people shared bases? Link to comment Share on other sites More sharing options...
kylebeed Posted July 26, 2014 Report Share Posted July 26, 2014 Which is the best way to run the script? Could i add this to infistar where you can delete bases ? Link to comment Share on other sites More sharing options...
RimBlock Posted July 26, 2014 Report Share Posted July 26, 2014 Nice script. Would there be an easy way to report the information in a format that can be easily copied in to the mission files so some bases can be mission rather than DB based ?. Link to comment Share on other sites More sharing options...
freakystyle Posted July 26, 2014 Report Share Posted July 26, 2014 welcome back maca ;) Link to comment Share on other sites More sharing options...
dayzlauncher Posted July 26, 2014 Author Report Share Posted July 26, 2014 Nice script. Would there be an easy way to report the information in a format that can be easily copied in to the mission files so some bases can be mission rather than DB based ?. Dunno, maybe in the array format? [ "base3", "Test Base", [0,23,0], [ ["CinderWallDoor_DZ",[0.0551758,-0.736328,3.37357],239.861], ["MetalFloor_DZ",[2.53516,0.763672,6.58356],59.9374], ["MetalFloor_DZ",[2.54492,0.763672,3.19955],59.8886], ["MetalFloor_DZ",[-2.00488,-1.83691,6.58356],239.937], ["MetalFloor_DZ",[-2.00488,-1.83691,3.19955],239.889], ["CinderWall_DZ",[-4.20508,1.36328,3.38358],150.186], ["CinderWallDoorSmall_DZ",[-2.5249,3.76367,3.38358],239.993], ["FireBarrel_DZ",[4.40527,1.86328,3.43457],59.2191], ["CinderWallDoor_DZ",[4.78516,2.06348,-0.000427246],59.9374] ] ] Link to comment Share on other sites More sharing options...
Mystic Joker Posted July 26, 2014 Report Share Posted July 26, 2014 this is really good man thanks maca Link to comment Share on other sites More sharing options...
RimBlock Posted July 27, 2014 Report Share Posted July 27, 2014 Dunno, maybe in the array format? [ "base3", "Test Base", [0,23,0], [ ["CinderWallDoor_DZ",[0.0551758,-0.736328,3.37357],239.861], ["MetalFloor_DZ",[2.53516,0.763672,6.58356],59.9374], ["MetalFloor_DZ",[2.54492,0.763672,3.19955],59.8886], ["MetalFloor_DZ",[-2.00488,-1.83691,6.58356],239.937], ["MetalFloor_DZ",[-2.00488,-1.83691,3.19955],239.889], ["CinderWall_DZ",[-4.20508,1.36328,3.38358],150.186], ["CinderWallDoorSmall_DZ",[-2.5249,3.76367,3.38358],239.993], ["FireBarrel_DZ",[4.40527,1.86328,3.43457],59.2191], ["CinderWallDoor_DZ",[4.78516,2.06348,-0.000427246],59.9374] ] ] Sorry, was probably unclear. Any possibility to convert the information reported to the RPT file in to the format that could be put in the mission.sqf or mission.biedi class _vehicle_904 { objectType="vehicle"; class Arguments { POSITION="[6321.106, 7835.9443, -3.0517578e-005]"; TYPE="CampEast_EP1"; AZIMUT="-232.68773"; PARENT=""; }; }; Being able to select a based and dump it to a mission sqf / biedi file format would make turning bases in to permanent map features much easier rather than trying to do it in the 3D editor (without snap building) or having to load the parts from the DB. Link to comment Share on other sites More sharing options...
Vindomire Posted July 27, 2014 Report Share Posted July 27, 2014 how are you calling this? i didnt see anywhere in the github where you define admins. are you using a key bind or an initial scroll menu file with admin uids there? Link to comment Share on other sites More sharing options...
MattL Posted July 27, 2014 Report Share Posted July 27, 2014 how are you calling this? i didnt see anywhere in the github where you define admins. are you using a key bind or an initial scroll menu file with admin uids there? the scroll menu is a part of the script, you can execute this however you want, whether that's having an if then block with a uid check for admins or just executing it. That's up to you. Link to comment Share on other sites More sharing options...
PeterBeer Posted July 27, 2014 Report Share Posted July 27, 2014 Could anyone tell me how to add this to the server ? Link to comment Share on other sites More sharing options...
KamikazeXeX Posted July 27, 2014 Report Share Posted July 27, 2014 I've added this to my admin tools menu and it doesn't seem to work, i'e tried adding it as an option in tools menu and tried adding a sleep 1; player addaction to add tools menu and base manager but it doesn't seem to actually launch the command menu from there, i don't get a cannot find "blah\blah\blah\basemanager.sqf" error it just does nothing, any idea's maca? P.S Welcome back to the Epoch forums! :D EDIT: Got the menu working now the problem is I get options to combine bars and buy bases when i hit the insert option, is this normal? I don't see a place or deploy option, double clicking on the base in the list does nothing either. EDIT 2: Derp, didn't watch the end of the video for how it works on the inserting bases xD got it working, love the test base by the way :D Link to comment Share on other sites More sharing options...
PeterBeer Posted July 28, 2014 Report Share Posted July 28, 2014 Got this working on the latest Infistar :) Link to comment Share on other sites More sharing options...
KamikazeXeX Posted July 28, 2014 Report Share Posted July 28, 2014 Right, its working but i have now encountered a real issue, when i go to copy bases my server rpt doesn't have the objects saved into the log, instead i get. 2:09:38 Server: Object 4:458 not found (message 70) 2:09:38 Server: Object 4:457 not found (message 94) 2:09:38 Server: Object 4:459 not found (message 94) 2:09:38 Server: Object 4:460 not found (message 94) 2:09:38 Server: Object 4:461 not found (message 94) 2:09:38 Server: Object 4:462 not found (message 94) 2:09:38 Server: Object 4:463 not found (message 94) 2:09:38 Server: Object 4:464 not found (message 94) 2:09:38 Server: Object 4:465 not found (message 94) Link to comment Share on other sites More sharing options...
Namindu Posted July 28, 2014 Report Share Posted July 28, 2014 Damn, thats sick nice work. Link to comment Share on other sites More sharing options...
NoxSicarius Posted July 28, 2014 Report Share Posted July 28, 2014 https://gist.github.com/maca134/d959907cb974a90826eb Run the script however you run scripts. PS. Might be a cool idea for people to share bases? This thing looks amazing. I was going to do something smaller scale. Do you have any objections to adding this into the EpochAdminTools? Full credit for you obviously. Link to comment Share on other sites More sharing options...
stonXer Posted July 28, 2014 Report Share Posted July 28, 2014 Very nice! works a treat, Thank you very much :) Link to comment Share on other sites More sharing options...
itsatrap Posted July 28, 2014 Report Share Posted July 28, 2014 How can I integrate this with infistar ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now