ViceCity/LibertyCity Problem 0.3DL
#1

Hello there.
I've just downloaded the VC, LC objects, I started the server, script lc2sa4samp, after that vc2sa4samp and now I have a problem. Objects do not have collisions and are not loading correctly. Objects files come from GTA United. Streamer seems to be up to date. Files update correctly.
Please help me.

https://sampforum.blast.hk/showthread.php?tid=644886

Sorry for eventual mistakes.
Reply
#2

I think you just forgot to process the colision.

So to get this working you will need:
Installing / Extracting GTA United Models:
  • Download latest Alci's IMG Editor https://www.gtagarage.com/mods/show.php?id=17269 (tested with v1.5).
  • Install the GTA United in a clean folder. NOT YOUR GTA SA. And delete everything except the mod folder.
  • Extract all files using Alci's IMG Editor:
    Extract /mod/lc2sa/lc2sa.img => server/models/lc2sa/temp
    Extract /mod/vc2sa/vc2sa.img => server/models/vc2sa/temp
  • Then move all .txd files to their respective folders (txd folder)
    server/models/lc2sa/temp/*.txd => server/models/lc2sa/txd
    server/models/vc2sa/temp/*.txd => server/models/vc2sa/txd
  • The you will have only dff and others inside the temp folder. Move they to their respective folders (dff folder)
    server/models/lc2sa/temp/* => server/models/lc2sa/dff
    server/models/vc2sa/temp/* => server/models/vc2sa/dff
You should now have all .txd files inside the txd folder and all .dff and .col inside the dff folder. Thats it! Move on.

Processing DFF and COL files (windows only sorry, it should be also easy for linux tho):
  • Download KDFF Tool here https://forum.sa-mp.com/showpost.php...77&postcount=1 (tested with v025a)
  • Download Collision File Editor II https://www.gtagarage.com/mods/show.php?id=1154 (tested with v0.4beta)
  • Extract the KDFF.exe file to the dff folder.
  • Open windows command prompt and do /cd to go to the dff folder. Or simply type cmd in the path name input and hit enter.
  • Then type this command to generate .col files for all .dff files inside the folder (it will take a while, go grab a coffee):
    HTML Code:
    for %f in (*.dff) do kdff.exe -g mesh -d %f -o %~nf.col
    Note: This works in most objects, but sometimes it will create collision problems in some objects, to fix that you have to use the Collision File Editor II and fix each object manually. Unless someone knows another way. So you can ignore that for now.
  • In the end type this command twice to attach all .col files to their respectives .dff so your models will have collision and you wont fall in water. Do this again each time you change a .col file with Collision File Editor II, so it will update.
    HTML Code:
    kdff.exe -p *.dff
  • After that you can either delete all .col files (as they have a copy attached inside the .dff file) or leave them as backup.
So now you have all .txd files inside the txd folders and all .dff (with their .col files attached) in the dff folders. Great!

Setup the server:
  • Open your server.cfg file and add streamer as a plugin by editing or adding the line
    plugins streamer
  • Then add lc2sa and vc2sa .amx as filterscripts by editing or adding the line
    filterscripts lc2sa4samp vc2sa4samp
  • Change the gamemode to bare (optional) by editing or adding the line
    gamemode0 bare 1
  • Start your server and wait for it to load
Setup client:
  • Open your SAMP client and add the ip 127.0.0.1:7777
  • Connect to your sever
  • To go to a city type /gotovc (VC) or /gotolc (LC) , then it will download all files and will later spawn you in the city.
Note: The cities are in another world. So you cant fly using a plane from one to another. You can change it recompiling the .pwn file and using the same world id for both.
Thats it Hope it works.
Reply
#3

Very good, that works! Thank you very much for help. But I have, another one problem: when I want to use my gamemode (0.3.7 R2) in 0.3DL, during the initialization, server says:
Script [gamemodes / gm_new.amx]: Run time error 19: "File or function is not found "

I don't know what is wrong...
Reply
#4

plugin/dll missing
Reply
#5

From server.cfg:
plugins FileManager mysql sscanf streamer Whirlpool

I have all .dll files and it is not working. On 0.3.7 R2 this problem didin't exist.
Reply
#6

Yeah mate, same problem here, just make a 3-4 sec timmer, at onplayerspawn just freeze the player and execute the timer, to load the map and when the timmer will be executed just unfreeze the player, it worked for me.
Reply
#7

Same here man..
Reply
#8

Quote:
Originally Posted by AdiPlayWell
View Post
From server.cfg:
plugins FileManager mysql sscanf streamer Whirlpool

I have all .dll files and it is not working. On 0.3.7 R2 this problem didin't exist.
Use native checker.
Reply
#9

Nativechecker helped. Now server is starting correctly. Gamemode will work normally?
Reply
#10

Libercity Map Files Fix COLLISIONS

Download: https://mega.nz/#!2t0jXChI! PASS: aJVTyNkgnIxGjjX0hlnlmjz5RRTmhs3kY_8e7_s9RD0

Extract the RAR file in the lc2sa folder and place it in the directory:

G: \ GAMES \ SAMP Server \ models \ ** Here **

I mean, staying in this way

G: \ GAMES \ SAMP Server \ models \ lc2sa \

Then

Using the source code of Libercity Generator by Kalcor

https://sampforum.blast.hk/showthread.php?tid=644886

Already Libercity is playable in 80% of corrected map collisions.

The objects were corrected with these tools:

-ColEditor II, was used to extract some collisions from the collision packages of the Libercity game.
-kdffgui, was used to apply the collisions extracted or generated new to the DFF object.
-3DS Max to generate new collisions .COL if necessary.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)