Jump to content
dayzlauncher

[Release] Base Copy/Paste

Recommended Posts

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 ;)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

When you copy a base, it saves the objects to the logs:

e7f94285c1.png

 

And you can then copy that into the script to add other structures.

7b530de1d7.png

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];

Share this post


Link to post
Share on other sites

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]
    ]
]

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...