[Tool]Cusom Vehicle Spawns

Discussion in 'Downloads' started by Gweincalar, May 25, 2013.

  1. CraftLourens

    CraftLourens Member

    Joined:
    Nov 12, 2012
    Messages:
    71
    Likes Received:
    6
    System.InvalidCastException: Приведение строки "0.25765705" к типу "Integer" является недопустимым. ---> System.FormatException: Входная строка имела неверный формат.
    в Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
    в Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
    --- Конец трассировки внутреннего стека исключений ---
    в Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
    в DayZ___Vehicle_Spawner.Form2.ReadSQF(String Path)
    в DayZ___Vehicle_Spawner.Form2.OpenSQF()
    в DayZ___Vehicle_Spawner.Form2.BcButton1_Click(Object sender, EventArgs e)
    в System.Windows.Forms.Control.OnClick(EventArgs e)
    в System.Windows.Forms.Button.OnClick(EventArgs e)
    в DayZ___Vehicle_Spawner.BcButton.OnClick(EventArgs e)
    в System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    в DayZ___Vehicle_Spawner.BcButton.OnMouseUp(MouseEventArgs e)
    в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    в System.Windows.Forms.Control.WndProc(Message& m)
    в System.Windows.Forms.ButtonBase.WndProc(Message& m)
    в System.Windows.Forms.Button.WndProc(Message& m)
    в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Загруженные сборки **************
    mscorlib
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    DayZ - Vehicle Spawner
    Версия сборки: 1.2.1.0
    Версия Win32: 1.2.1.0
    CodeBase: file:///C:/Users/CraftLourens/Desktop/Server/DayZ%20-%20Vehicle%20Spawner.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Версия сборки: 8.0.0.0
    Версия Win32: 8.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System.Windows.Forms
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    System.Configuration
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    mscorlib.resources
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    INILib
    Версия сборки: 1.0.0.0
    Версия Win32: 1.0.0.0
    CodeBase: file:///C:/Users/CraftLourens/Desktop/Server/INILib.DLL
    ----------------------------------------
    Devart.Data.MySql
    Версия сборки: 7.6.217.0
    Версия Win32: 7.6.217.0
    CodeBase: file:///C:/Users/CraftLourens/Desktop/Server/Devart.Data.MySql.DLL
    ----------------------------------------
    System.Data
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Transactions
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    Devart.Data
    Версия сборки: 5.0.676.0
    Версия Win32: 5.0.676.0
    CodeBase: file:///C:/Users/CraftLourens/Desktop/Server/Devart.Data.DLL
    ----------------------------------------
    Accessibility
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------
    System.EnterpriseServices
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------
    System.Core
    Версия сборки: 3.5.0.0
    Версия Win32: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    Microsoft.VisualBasic.resources
    Версия сборки: 8.0.0.0
    Версия Win32: 8.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_ru_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
    ----------------------------------------
    System.Windows.Forms.resources
    Версия сборки: 2.0.0.0
    Версия Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
     
  2. Gweincalar

    Gweincalar New Member

    Joined:
    May 25, 2013
    Messages:
    18
    Likes Received:
    5
    Could you describe what you did to get the error message?
     
  3. Raitaa

    Raitaa New Member

    Joined:
    Jul 3, 2013
    Messages:
    2
    Likes Received:
    0
    Hello guys... I want to ask here for help because i have that error when trying to connect to database : Host next.home is not allowed to connect to this MySQL server. BTW. Im using server files for dayz 1.7.1 from this site. Please help me someone because i badly need to spawn some vechicles
     
  4. Gweincalar

    Gweincalar New Member

    Joined:
    May 25, 2013
    Messages:
    18
    Likes Received:
    5

    Does your MySQL server allow external connections? Many servers are restricted to local access for security reasons.
     
  5. JoSh0

    JoSh0 New Member

    Joined:
    Jul 2, 2013
    Messages:
    15
    Likes Received:
    15
    A nice feature would be to rip vehicles from db.
     
  6. jukki

    jukki New Member

    Joined:
    Jan 19, 2013
    Messages:
    12
    Likes Received:
    3
    Few problems i have been having. It canont use the setDir value since it is not Integer and i have to manuly delete the decimals from them in order to get it working. Also when importing vehicles that are not in database i get incorrect decimal value '0,1' for colum 'damage_min' at row 1. I basicaly have to manualy add every vehicle tovehicle tab wich is time consuming. (I am using custom vehicle pack so the cars are not in the vehicles tab by default).

    Any possible fix for this?
     
  7. justchil

    justchil Well-Known Member

    Joined:
    May 29, 2013
    Messages:
    102
    Likes Received:
    0
    Very useful. I have a few comments but need to post while using it lol. Also wish I could pull from db to map editor... I have about 400 I added that I'd like to edit in 3d :x
     
  8. Gweincalar

    Gweincalar New Member

    Joined:
    May 25, 2013
    Messages:
    18
    Likes Received:
    5

    Never thought about pulling from db to map editor but it sounds like a great idea. I just made a little update to include this feature, however after you've edited your mission and saved it again, you first have to delete your current vehicles from the database, otherwise you will have 2 vehicles at the same spot, stuck in each other.

    If you clear the tables "world_vehicle" and "instance_vehicle" you should be fine.
     
  9. jukki

    jukki New Member

    Joined:
    Jan 19, 2013
    Messages:
    12
    Likes Received:
    3
    Nice that is quite usefull feature, however is there any fix for my 2 issues, quite frankly i dont feel like manuely fixing all car entries XD
     
  10. Gweincalar

    Gweincalar New Member

    Joined:
    May 25, 2013
    Messages:
    18
    Likes Received:
    5
    Well theres a function build in, if you try to import vehicles that are not in your vehicles table by default.

    During your import you should get a message saying:
    "X vehicles have been removed from the list since they didn't exist in your vehicles table.\nDo you want to view a list of the vehicles that have been removed?"

    If you press yes, you can see a list where you can also set the default values for not imported vehicles and then, add them to your vehicles table. After that you just have to restart the tool using the restart button and you should be able to import all vehicles.
     
  11. vaevictis

    vaevictis New Member

    Joined:
    Jun 9, 2013
    Messages:
    26
    Likes Received:
    0
    The export from database isn't working for me (newest version).

    I get an Unhandled Exception error and then a beidi file on my desktop with a size of 0 bytes.

    I copied the error details onto pastebin. I'll pm you the link.
     
  12. Gweincalar

    Gweincalar New Member

    Joined:
    May 25, 2013
    Messages:
    18
    Likes Received:
    5
    What did you do exactly to get this error. I've tried to replicate it on 5 different PCs and never got a error message.
     
  13. jukki

    jukki New Member

    Joined:
    Jan 19, 2013
    Messages:
    12
    Likes Received:
    3
    Yes i am aware of this ;) But it doesnt work for me, first of all i get some wierd windows errro when i load the sqf file because the program doesnt seem to be able to load decimetric value of the setdir.

    The second problem that i have is when the thing you just described is supose to happen. I do get to that part, but when i try to import the entries i get error "incorrect decimal value '0,1' for colum 'damage_min' at row 1."
     
    vaevictis likes this.
  14. vaevictis

    vaevictis New Member

    Joined:
    Jun 9, 2013
    Messages:
    26
    Likes Received:
    0
    It's when it asks me to save the file into a location. I hit save and bam up comes that error everytime.

    I've tried running as admin and without same problem each time.
     
  15. Gweincalar

    Gweincalar New Member

    Joined:
    May 25, 2013
    Messages:
    18
    Likes Received:
    5
    Ok i could replicate your sql error. Try changing your decimal separator from a "," comma to a "." dot. You can do this under your regional settings in windows.



    I'm going to look for a solution. However i can't replicate your error atm. I will message you if i find a solution for it.
     
  16. veX

    veX Member

    Joined:
    Apr 17, 2013
    Messages:
    49
    Likes Received:
    0
    glad I checked if someone else already coded a tool like this, I was almost gonna do it myself ;)
    works great thy!
     
  17. Mucka

    Mucka New Member

    Joined:
    Aug 2, 2013
    Messages:
    3
    Likes Received:
    0
    OMG i just found this program and i hope it still works?

    Ive put a few vehicles down in the map editor and when i tried to add them to the server i got an error saying...

    "Cannot add or update a child row: a foreign key constraint fails ('bliss_0000'.'instance_vehicle', CONSTRAINT 'instance_vehicle_ibfk_1' FOREIGN KEY ('instance_is') REFERENCES 'instance' ('is'))"

    Do i run the map editor on by starting DayZ Beta, Arma 2 or Arma 2: OA? (I use steam)

    Would love it if someone could help on the error above as i would like to add buildings to the map to :)

    Thanks
     
  18. Gweincalar

    Gweincalar New Member

    Joined:
    May 25, 2013
    Messages:
    18
    Likes Received:
    5
    It seems like you're using a Bliss Server / Database. Since I've never used a bliss package i don't know if it has the same database structure like reality. I think i will search for an Bliss Database so i can see if it's the database or my tool.

    Also you can run the map editor if you run your DayZ or Arma2 and press ALT+E in the main menu.
     
  19. indepth

    indepth Member

    Joined:
    Feb 4, 2013
    Messages:
    98
    Likes Received:
    17
    You guys having error with "decimal something" you need to set your PC location to usa to have "," and not "." for digit separator.
     
  20. rosska85

    rosska85 Valued Member!

    Joined:
    Aug 13, 2013
    Messages:
    508
    Likes Received:
    66
    Great program, much easier than my old method of doing this. However, I'm running into a slight problem (probably something I'm doing wrong) some of the things I place are moving when added to the database. For instance, I have a bandit camp set up and have placed walls around it. When in the DB the game shows half of them overlapping each other and some of them not even remotely where they should be.

    Could anybody please point me in the direction of my error so I can fix it? :)
     

Share This Page