Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

Maxo's Vehicle Loader


maxorator
 Share

Recommended Posts

MVL does not add any SCM opcodes at all. You can, though, manage some of its features via Python scripts.

Link to comment
Share on other sites

  • 5 weeks later...

Actually in the latest test version there are two custom opcodes - one forces any next text draw to show the name of the specified vehicle and the other one is for spawning weapon pickups where weapon ID is used instead of weapon model ID.

 

I'm currently making a way to create custom opcodes via Python scripting, so to create opcodes for messing with vehicle tuning parts and playing animations, all you need is something like this:

import mscmimport manimimport mvehdef scmPedPlayAnimation(ped, groupId, animId):	manim.blendPedAnimation(ped, manim.getStockAnimation(groupId, animId), 1)	def scmGetTuningPartCount(modelIndex):	return mveh.getTuningPartCount(modelIndex)	def scmGetTuningPartVarCount(modelIndex, partIndex):	return mveh.getTuningPartVarCount(modelIndex, partIndex)	def scmGetVehUsedTuningPart(vehicle, partIndex):	return mveh.getVehUsedTuningPart(vehicle)	def scmSetVehUsedTuningPart(vehicle, partIndex, varIndex):	mveh.setVehUsedTuningPart(vehicle, partIndex, varIndex)mscm.registerHandler(0x850, scmPedPlayAnimation, "Pii")mscm.registerHandler(0x851, scmGetTuningPartCount, "i")mscm.registerHandler(0x852, scmGetTuningPartVarCount, "ii")mscm.registerHandler(0x853, scmGetVehUsedTuningPart, "Vi")mscm.registerHandler(0x854, scmSetVehUsedTuningPart, "Vii")
Edited by maxorator
Link to comment
Share on other sites

Arguments' list.

Link to comment
Share on other sites

Holy Christ we get it! Will you have a bit of patience and stop spamming!

Edited by TJGM
Link to comment
Share on other sites

plz brother help me ....

If we couldn't help you the first time you asked, don't ask the same exact people again. Being patient and waiting will get you help, doing the opposite will get you in to trouble.

Link to comment
Share on other sites

 

I have use maxo's vehicle loader v0.98b and I also used celo v 1.1.1.6

my problem is when I used parkour_cleo_4.1

tommy always jump and jump ... and he don't stop .... but my parkour_cleo_4.1 perfectly working when i was used maxo's vehicle loader v0.98a .... now can anyone help me ... how do i used parkour_cleo_4.1 perfectly ???????? on maxo's vehicle loader v0.98b .... plz plz plz I need A help .... "(

 

I've warned you about spamming. You've been reported.

Link to comment
Share on other sites

hay brother I do not spamming .... I face some prb on my internet connection ... that why my post r 3 time publishing .... but U thing I was spamming .... :cry:

Link to comment
Share on other sites

Are you going to fix <models>, <texdicts> and <colfiles> sections related crash, maxo?

 

Yeah, I'll try to fix the bugs related to setting their combined value over 32k.

Link to comment
Share on other sites

Yeah, I'll try to fix the bugs related to setting their combined value over 32k.

It produce crashes even with values below 32k. I disabled these settings, and tried to do this(for txd limit):

CPatch::SetInt(0x41065F, 31000);CPatch::SetInt(0x580FD6, 31000);CPatch::SetInt(0x58102D, 31000);

before game starts and it works fine.

Edited by ThirteenAG
Link to comment
Share on other sites

 

Yeah, I'll try to fix the bugs related to setting their combined value over 32k.

It produce crashes even with values below 32k. I disabled these settings, and tried to do this(for txd limit):

CPatch::SetInt(0x41065F, 31000);CPatch::SetInt(0x580FD6, 31000);CPatch::SetInt(0x58102D, 31000);

before game starts and it works fine.

 

 

Can you give me an example of values that causes it to crash?

 

 

Link to comment
Share on other sites

Try with this one. Can't really say if it helps, but I guess anything's possible.

 

http://maxorator.com/v/vehmod_scmtest3.7z

 

(Easter egg: set "trashbin" to "true" in globalm.xml's internal section, then press Alt+0 in-game)

Oh My...... I do not know what to think, that sure will come in handy on missions.

 

Edit:

 

I do not know if it is a coincidence or what but the week I start making/porting my XML Builder into a VB.net Version Maxo comes back with updates. Awesome Timing.

 

(I thought it might be time to give up on the old Javascript version for now as some features that I would like to include would be near impossible to achieve, I'll still keep it on the website and update it to better suit new browsers but at the moment there will be no new features added as I work on the desktop version which might get ported over to replace the Javascript)

Edited by ALMOST610
XDBuildTopicSig6.png

Link to comment
Share on other sites

vehmod.fit (710 Kb) its works perfectly but my cleo 1.1.1.6 wont working .... if it work ... then may be my prb is fixed ....

Link to comment
Share on other sites

scmtest3 version and CLEO work together well, pretty sure the problem is on your side.

Link to comment
Share on other sites

an you give me an example of values that causes it to crash?

I posted the errorlogs before, and just tried with latest version.

I installed latest mvl from previous post, downloaded savegame from here: http://www.gtasavegames.com/savegamesf/68-Vice-City-Road-Kil

My settings is here: http://pastebin.com/T1WZSRrp

To reproduce the crash, i'm using autosave cleo mod here (compiled version).

After finishing 'Riot' mission i have this:

f8559ce3610de0be299386977be11959.jpg

 

Messagelog: http://pastebin.com/sttxpx0r

Errorlog: http://pastebin.com/gUuW6L5F

 

Crash appears during some other missions aswell, error code maybe different as far as i remember. I also had it when saving via pickup, so autosave mod is not responsible. With my txd limiter i don't have any crashes like this.

Edited by ThirteenAG
Link to comment
Share on other sites

 

an you give me an example of values that causes it to crash?

I posted the errorlogs before, and just tried with latest version.

I installed latest mvl from previous post, downloaded savegame from here: http://www.gtasavegames.com/savegamesf/68-Vice-City-Road-Kil

My settings is here: http://pastebin.com/T1WZSRrp

To reproduce the crash, i'm using autosave cleo mod here (compiled version).

After finishing 'Riot' mission i have this:

f8559ce3610de0be299386977be11959.jpg

 

Messagelog: http://pastebin.com/sttxpx0r

Errorlog: http://pastebin.com/gUuW6L5F

 

Crash appears during some other missions aswell, error code maybe different as far as i remember. I also had it when saving via pickup, so autosave mod is not responsible. With my txd limiter i don't have any crashes like this.

 

 

Well, technically it still goes over 32k since the default models value is 6500. But I'll work on fixing the 32k problem.

Edited by maxorator
Link to comment
Share on other sites

I wish VC would work for me... still it says ENTER CD OR PRESS ESC :(. Good work on this add-on Maxorator, good luck with other updates of it :)

DhF4CUK7S5mrQmZkTLK8DA.png

Link to comment
Share on other sites

How do I open ASi file .... can anyone help ????

Why would you want to open it? It's not a CLEO script.

Link to comment
Share on other sites

I want to open vehmod.flt ... but could not know how to open it ? i ask asi file open becoz flt/asi file both R same isn't it ?

Link to comment
Share on other sites

I want to open vehmod.flt ... but could not know how to open it ? i ask asi file open becoz flt/asi file both R same isn't it ?

I think the fact that it is a finished complied file means it has no need to be opened or edited, should you need to see the source code that badly ask Maxorator.

XDBuildTopicSig6.png

Link to comment
Share on other sites

I think the fact that it is a finished complied file means it has no need to be opened or edited, should you need to see the source code that badly ask Maxorator.

He must be looking into some Magical Rainbow Unicorns® hidden in it!

Edited by SilentPL
Link to comment
Share on other sites

maxovehmod098c_beta crashes after starting new game, when save was loaded.

http://pastebin.com/1dtxAG00

 

I have a small amount of mods on my vc at the moment, and new game works just fine without mvl, so i think something needs to be fixed in MVL.

Link to comment
Share on other sites

Version 0.98c released.

 

 

--------------- NEW IN 0.98c ---------------

 

Custom weapon sounds can be used by including .wav files in the archive. You can include custom sound for shot, reload and echo (filenames should then be gunshot.wav, reload.wav, shotecho.wav). You can also set custom frequency, loop start and end positions by modifying the file name, for example: reload-f22050s100e1000.wav will sound like you set the frequency to 22050, loop start to 0 and loop end to 1000 (these values work the same way as in sfx.SDT). Vehicle engine sound can currently only be changed when you set the vehicle to use RC audio (RCAUDIO extra flag), in which case the filenames would be rcengine1.wav and rcengine2.wav (check sounds included with MW_29's Hydra).

 

New SCM opcodes can be added with Python scripts. Check the extraopcodes.py sample script to see some added opcodes for manipulating tuning parts. You must specify the list of arguments that your opcode takes when registering it: 'i' is integer, 'f' is float, 'V' is vehicle handle, 'P' is actor handle, 'O' is object handle. You can easily return multiple values by separating them with a comma. If you return only one value that is a ped/vehicle/object handle, then you must add a comma to the end (for example: "return ped,")! If you return a boolean (True/False), then that opcode works as any other is_xxxxx opcode.

 

There are also 2 built-in opcodes:

0800 - used to make next text draw call with label MVLNAME draw the name of the specified vehicle. If you want to tell it to draw the name of a vehicle by model index, then the first argument must be 1 and second argument must be the model index. If you want to pass a vehicle handle instead, the first argument must be 2 and the second the handle of the vehicle.

0810 - used to create weapon pickups by weapon ID instead of model ID. This can be used to spawn MVL weapon pickups. Arguments are: weaponId x y z ammo

 

When saving the game now, all MVL vehicles will instead be saved into the main save file as default vehicles (all cars are golf carts, all bikes are faggios, all boats are dinghys). The actual information about which MVL vehicle they are supposed to be is saved to a separate .xml file in the same folder as the save files. If all the vehicles still exist in your vehicles folder and MVL is present, then saving and loading will work fine - when you saved an MVL vehicle, on loading the MVL vehicle will also appear (tuning parts are also saved). However, if MVL is removed, all saved MVL vehicles will be loaded as some default vehicles (golf carts, faggios or dinghys). The same applies for vehicles which do not exist in your vehicles folder anymore. Saved MVL vehicles are not tied to the model ID, instead they are tied to archive checksum and archive name. If you change only one of them (archive contents or archive name), the game will still find the correct vehicle associated with a save. However, if you change both the contents and the name, then the vehicle will no longer be recognized.

 

--------------- CHANGELOG OF 0.98c ---------------

 

* Works with Steam version.

* Support for custom weapon sounds.

* Support for custom engine sound for vehicles with RC-vehicle audio.

* Bullet holes (enabled when a bullethole.png is in mvl folder).

* Custom SCM opcode handlers via Python scripts.

* Opcode 0800 for making the next text draw opcode with label MVLNAME output the name of the specified vehicle.

* Opcode 0810 for creating a weapon pickup using weapon ID instead of weapon model ID.

* MVL vehicles are saved to a separate file when saving, makes saves with MVL vehicles compatible with non-MVL VC and allows more flexibility with vehicle IDs.

* Trashbin toy (set "trashbin" to "true" in globalm.xml and use Alt+0 in-game).

* Fixed an issue with resolutions in windowed mode which caused the game not to launch for some people at some resolutions.

* Fixed an issue with SCM threads which caused problems when missions ended.

* Fixed a crash when saving, which occured when using quicksave when model limit was set to over 32k.

* Support for full-screen sniper scope images, the image file's name must be stretch_scope.png .

* Slight loading screen speed-up.

 

maxovehmod098c_beta crashes after starting new game, when save was loaded.

http://pastebin.com/1dtxAG00

 

I have a small amount of mods on my vc at the moment, and new game works just fine without mvl, so i think something needs to be fixed in MVL.

Should be fixed in the release. Edited by maxorator
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.