Jump to content

MTA:VC - main.scm coders needed


Recommended Posts

Yep, we've done it again. We're working on the fresh project MTA:VC.. we've found the addresses and we're going to use the same technique as MTA v0.3b, without most of the annoying bugs and stuff.

But since trx is on vacation (returns next week), we need a experienced main.scm coder who has experience programming the main.scm in Vice City. Please reply only here if you want to help us.. and you've got enough skills. We'll contact you as soon as possible.

Link to comment

Hi, What code is it :-) what do Asembler ? c++ c# c java php asp qbasic :)

im on work :D i got some free time and find this fantastik mod :)

I'm Lerning information scientist in the second year so .. maybe i can help :) but i need some more information :)

Whould there be MTA:VC!

and sry 4 my bad english :)

Link to comment

Oh Yeah! I'll be back in a couple of days, and I can't wait to start work on Vice City Multiplayer. I wasn't able to use the net for a couple of days, but i just read the news, and I'm quite excited.

Link to comment

My mad skizills.

Well, since you still have the request up, I thought I'd send you a better application than that meager previous post. The linked .zip archive above has a main.scm mod-in-progress that I have been working on for, uh, a day, so it's a little rough around the edges. At the moment I think I am the only person to have released a teargas pickup mod (although it's a simple code change and nothing to really fuss about), and I am loosely affiliated with the GTA: Motor City project.

First warning: there's a little debugging code in this script, so you may get some numbers flashing about the bottom of the screen, and if you lay on the horn your fuel will drop to zero and your car will catch on fire. So don't touch that horn.

To take a quick tour of the mad skills, copy the main.scm file to the appropriate directory and start a new game. Get in the Admiral and head North towards the Malibu Club. You'll notice at once that you have a speedometer and randomized fuel gauge. If you step out of the car, these disappear. If you get in a new car, the fuel is randomized again; if you get in the same car, the fuel stays the same. It works by storing your old car when you exit, and then comparing its xpos, ypos, and health upon re-entering a car. If they are different, it recognizes the new car and regenerates the fuel values. This code is a little bit rough, but it's functional. I do intend to clean it up soon. If you don't hold the enter-car key while entering, it may not put the gauge up -- this is an easy fix I just haven't done yet. At the moment, when you run out of fuel, your car will catch fire. I hope to disable it more accurately later. Fuel levels are weighted towards the top, by the way, and I'm planning on making fuel consumption vary by car type and causing it to leak when the car is damaged too much.

You may have noticed by now that you can be picked up for speeding, but you may not have. Every so often, it code runs a random check to see if you were caught while speeding. I plan to generate actual cops to chase you, rather than simply updating the wanted level, and I am going to play the "10-4, we have a drunk driver" wav (PHIL_2" or "_25", I think). So far I haven't had any luck playing wavs, but I've only worked on this for 12 hours or so. By the way, the car number reporting you is randomly generated each time.

Now that you've played with that for a while, go into the Malibu and approach the bar. There is a pickup there. Since I started you with money, there is no need to kill anybody for your drinks. Go up and have a few. Each one (up to 8) will increasingly impair your controls and display (using the Phil mission drunk opcodes). After 8, they continue to count up. At 23, you get liver poisoning and start bleeding. Your health will sap at the rate of one per second. There is no cure yet, but I plan to heal you on entering an ambulance or picking up health, in the future.

Now, go back outside and get in your car. Drive around for a while. You may notice that you're getting less impaired, if you drive around long enough. Each drink takes one real minute (one hour in-game) to wear off, just like real life. You may also notice that you're getting a wanted level. It varies with how drunk you are: at three drinks, one star, at five drinks, two stars, and at eight or more, three stars. I capped it there, because while you might see undercover cops coming after a drunk driver, you'll never see a SWAT team or National Guard unit on that bust. You may not notice this, though, because there is a 5% chance every 30 seconds. That means, on average, you can drive drunk for ten minutes (long enough to sober up!) before you get caught. So you probably won't get caught, although you might. I felt this was realistic.

I also unlocked Hyman Condos from the begining and put a Hunter in Ocean Beach. Nothing earth-shattering, but it's nice to have available when you're screwing around. You can save your game at the hangar on the docks or in the airport by the helipad. Hyman Condo's helipad saves your helicopters, and so does the airport one. Your boats are saved in the docks hangar. There is a glitch in the game code that assumes your garages are enclosed, so it doesn't display saved vehicles until you enter the space. Otherwise it works fine.

Also, go to the Lovefist building. There's a save pickup on the steps: when you grab it, you teleport to the top of the building, where the once-empty helipad has a Maverick. I added this to replace the one I removed from Hyman Condos early on, and the code is pretty bad. If I were to rewrite that, which I will at some point, I would use an in-sphere check rather than a pickup, raise the zpos so you don't restart embedded in concrete, and fade it properly.

Oh yes, to sober up any time, hit the dodo up/dodo down keys. This is some remaining debug code as well.

Everything else is stock code, so most of the game is still locked. You can play a game normally if you're so inclined.

By the way, how about poison darts in MTA? Replace one gun with a tranq. rifle and when you hit the other player with it, trigger some drunk code on the other console... my pick would be the shitty sniper rifle, because it takes a long time to reload, like a real tranq. rifle, and could be used strategically from a distance.

Link to comment

Nice work, supersocialist, (although I haven't tried the main.scm out, i'm sure it works) I think you could be a candidate. Let me talk to IJsVogel about it. I am wondering one thing though: Are you using Bartons Mission Builder or another program?

Link to comment

some very nice ideas there man.

I always liked the idea of not being able to drive drunk, and if you could be caught for speeding could you also make it illegal to go through red lights/fail to give way etc? - make it like gta:vc driving simulation =)

Link to comment

I'm using Barton's editor version .13 at the moment. I've got .135 on hand. Since it requires a fresh decompile, I don't want to switch over until I've more or less finished the scripts I'm working on. I don't want to lose my commenting in the middle of a project.

Also: speeding could be varied by map area (airport/docks/haiti/beach1, 2, 3, etc) but not by street. I don't think red light checks and wrong side of the road checks can be handled in main.scm, but they might be accessible from a trainer or the MTA client. That data is all in memory -- ped cars follow the right rules -- but there are no known opcodes for them.

Link to comment

Ah, I see. I've just returned from my vacation, so I don't really know what happend to vGTAasm for Vice City, It seems to have been abandoned and picked up by someone else, and is not released yet. I just downloaded Bartons latest Mission Builder (0.135, I believe), and am I dissapointed to see he made a mess out of it once more. I have used his previous mission builders for gta3, but had to switch to another mission editor for the MTA project ( vGTAasm, or 'Dans' Editor ). It is much faster to code in, and much clearer to read than Barton's, and after getting accustomed to that language, I find it hard to return to Barton's language. But if there is no alternative -ugh- then I guess I'll have to.

PS. its late now and im feeling lazy, so could anyone tell me where i can find a completely stripped main.scm for vc? that means nothing in the game, only your player, cars and peds.

Link to comment

I tried Dan's assembler, but I couldn't get it to work. I think the format is a lot nicer and I'd rather use it, or the c-language-style compiler that other guy is working on (and has not yet released). The last time I checked on vGTAasm, it had been abandoned and not picked up, so I started working with Barton's.

http://home.southernct.edu/~baileyr3/stripped.zip

That's mostly stripped; I think a few pickups are still laying around.

Link to comment

I have dan's assembler running, and I converted my bullet time script to the format. It compiled fine, but crashes when I start a new game. The new project stripped file doesn't run (although it compiles), and my decompiled stock copy of main.scm also crashes when I recompile and run it. Maybe I downloaded the wrong packages from those links or something. Does anybody who has it working have any suggestions for me?

(edit: I wasn't very clear about why it wasn't working, so I clarified.)

Link to comment

I've also had difficulties with that before, but I haven't tested it with Vice City yet. The reason is probably incompatibility. You'd better stick with Barton's for creating your own mod, then if your interested in assisting MTA, you'd have to use vGTAasm.

Link to comment

I wish it was just my code that was causing problems, but nothing I do with it works. Decompiling the original main.scm file goes fine, and it looks very nice and readable in the IDE program, and recompiling it also works. When I run Vice City it crashes on a new game, and also crashes on loading an old game (even when the main.scm files should be identical). It seems to be compiling files that simply don't work -- Rockstar's original code should recompile and run just fine, right? Hell, even if it didn't, the blank script created by the decompiler ought to work with the compiler. I'll have to do a clean install of it and screw around some more. Let me know if you get it running for Vice City before I do, if it isn't much trouble.

Link to comment

I've got it sorted out and have some ghetto test code of my own running. I had two problems, which I will detail in case it will help somebody else:

When you decompile the project for the first time, do not forget to click the "this is a vice city project" button! Stupid, stupid mistake ... but it decompiled just fine, so I didn't notice what I had done. I spent hours screwing with the code when all I had to do was tell the compiler to make a Vice City .scm instead of GTA3.

Also, when creating a new project, the "this is a vice city project" button is greyed and cannot be clicked. There's no obvious way to switch it over to a Vice City version, so what I'm going to do is compile a stripped .scm in Barton's editor, decompile it with gtama, and then start working in the new format from there.

Link to comment
When you decompile the project for the first time, do not forget to click the "this is a vice city project"

=)

Also, when creating a new project, the "this is a vice city project" button is greyed and cannot be clicked.

It's not important I think if the project is VC or GTA3 as long as you know what is what.

I've just tested some things out, and I've had no problems de/compiling the main.scm. I added a Hunter right where you start, and started with the COPCAR mission instead of the INTRO. Worked without any problems for me.

Link to comment

Here, I just made a stripped version. Try if this compiles (it did on my comp) If not, you might be using the wrong tools (versions)

This is the MAIN.gsr

   #MISSION STRIPPED

  name_thread                   "MAIN"
  fade                          0, 0
  set_current_time              22, 0
  create_player                 %null, 83.0, -849.7, 9.3, $player_char
  make_actor_from_player        $player_char, $player_actor
  start_mission                 &STRIPPED

This is the STRIPPED.gsr (the mission code)

  request_model            %hunter
  load_requested_models
  create_car               %hunter, 83.0, -859.7, 9.3, $hunter
  fade                     1, 1

  @stripped
  wait                     0
  if                       0
    is_player_driving      $player_char
  jf                       @stripped
  wait                     2000
  jump                     @stripped

I hope it is of any help.

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...