GTA: Modification Area

A website for the GTA modding scene

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Big-game starts raising Schneider's profile
Sun Mar 04, 2012 2:28 am by lavivi

» [Help] cleo created lighting
Thu Oct 14, 2010 1:03 am by findmy012

» Mission Question
Thu Oct 14, 2010 1:02 am by findmy012

» [IV] Spoiler Script
Thu Oct 14, 2010 1:02 am by findmy012

» Mission mod [help]
Sat Sep 18, 2010 5:50 pm by jayd00

» Bc7 Mod Help
Fri Aug 20, 2010 11:19 am by pengpeng

» Found a bug
Fri Dec 18, 2009 4:22 am by _CJ360_

» [IV] Novitec Rosso 599 GTB
Tue Nov 17, 2009 4:22 pm by Kotton

» Hello/Guidance Request
Mon Oct 12, 2009 6:45 am by Adler

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Affiliates
image

Image

Image

Image

Image

Image

Image

Image

Image

Image

image

Image

steve-m.com

Image


----- Русский -----

Если ваш сайт содержит большую коллекцию SCM/CLEO-скриптов (больше 16), напишите на мой e-mail, и я добавлю его в список. Приветствуются скрипты, которые не встречаются на других сайтах ... Спасибо. ))))


----- English -----

If your website has a big enough collection of SCM/CLEO scripts (more than 16) notify me by e-mail
, and I will add it to the list. The unique scripts are preferable ... Thank you. ))))

Log in

I forgot my password



December 2016
MonTueWedThuFriSatSun
   1234
567891011
12131415161718
19202122232425
262728293031 

Calendar Calendar


You are not connected. Please login or register

[IV] Spoiler Script

View previous topic View next topic Go down  Message [Page 1 of 1]

1 [IV] Spoiler Script on Wed Oct 21, 2009 8:32 am

what's happonen Big.. hope all's been goin good with ya man-

I know IV scripting is relatively new.. but I'm lookn to do a LUA script for IV
that controls my Veyron spoiler realistically-

first off, is it even possible? -if so, secondly, what should I do.. add the parts
as external objects? -or- can I put them as extras and modify their positions/rotation?
what sucks is, I know exactly what I would do to get it working in SA/CLEO :suicide:

some pics to reference..

the spoiler (3 parts) in it's native retracted position


the spoiler in it's extended position (top wing rotates 15 degrees, bottom wing extends)


and braking at high speeds (top wing rotates another 55 degrees)


so as you can see, the main wing would have to be "attached" the the mount, then the mount would
slowly move up and back (in diagonal fashion), while the main wing rotates 15 degrees towards the front-
at the same time this happens, the secondary wing would diagonally move up and out - of course,
then it would have to flip up when braking (above a preset speed) and retract back to it's original
position when driving below a certain speed- any pointers to get me going on this would be appreciated

View user profile

2 Re: [IV] Spoiler Script on Thu Oct 22, 2009 11:34 am


any pointers to get me going on this would be appreciated


Should be possible - but is very much work, at least until modding in GTA4 becomes even more advanced. Yeah, in SA it's very easy and does not take much work. LUA scripting is some-what limited, until Alexander updates it, but is busy in university at the moment.



add the parts as external objects?

Probably would be best, yes.

At first, the spoiler will need to be a separate object from the actual car, and move it as a object. I know almost exactly what you're getting at -- as I tried the Bugatti mod for SA with the script spoiler. You do know how to write ASI-style (DLL - same) plugins, yea?

IMO, I think that it would be more easy to create this using C++ or via Script Hook - just my opinion, though. More is possible with C++, I guess more people use LUA because it's more easy to learn; I use all IV-scripting methods anyway, but just mainly C++. ))) Still hard though.

I'm not at home right now, so I can't help more yet, I'll take a look as soon as I get home.

--

Look through the natives, see if you can find any function to help you;

http://public.sannybuilder.com/GTA4/gta_natives_pc.txt
http://public.sannybuilder.com/GTA4/

Others (though maybe not useful for this subject):

http://public.sannybuilder.com/GTA4/natives.txt
http://sannybuilder.com/forums/attachment.php?item=102 (the 105 NOP-functions in GTA4)

[Thanks to Seemann & listener, etc...]


_________________
Some links for modding information:
• GTAModding Wiki
• Документация по моддингу GTA
• Sanny Builder (Русский)
• Sanny Builder Profile

View user profile http://gtamodding.com

3 Re: [IV] Spoiler Script on Fri Oct 23, 2009 10:27 am

Idgaf how it's done, just as long as it's possible Very Happy
I only said LUA because I thought that's the medium we needed to use
-and even tho I searched for a native that would help,
honestly, I haven't even tried doing a LUA script yet lol
and nah man, the only scripting I've done is all CLEO, nothn else

but I'm down man, just met me know what I gotta do and I'll do it-

View user profile

4 Re: [IV] Spoiler Script on Fri Oct 23, 2009 11:25 am


I only said LUA because I thought that's the medium we needed to use

No, that's good, LUA is a nice language, just not advanced enough for some things and that's all.



-and even tho I searched for a native that would help, honestly, I haven't even tried doing a LUA script yet

You are far from the "only one" - because still, a lot of people still can't even play GTA4 because of the system requirements. =) In Russia, we have lots of books on C++, I don't know if America does, but I believe it should have.



and nah man, the only scripting I've done is all CLEO, nothn else

Doesn't matter. It's still classed as "programming" and if you have experience in scripting, it should not be so hard at all to learn C++.




but I'm down man, just met me know what I gotta do and I'll do it-

To get started, first:

1. Download aru's C++ Script Hook if you have not already. And read through the thread.

2. Read this http://forums.gtamodding.ru/index.php?showtopic=86&st=0 ; sorry it's in Russian, maybe you can use Google.

3. Read: http://en.wikipedia.org/wiki/C%2B%2B

4. Download Visual Studio C++ (if you don't already have it): http://www.microsoft.com/express/download/default.aspx

5. Read:

http://www.csharp-station.com/tutorial.aspx and the GTA 4 forum http://www.gtaforums.com/index.php?showforum=251


_________________
Some links for modding information:
• GTAModding Wiki
• Документация по моддингу GTA
• Sanny Builder (Русский)
• Sanny Builder Profile

View user profile http://gtamodding.com

5 Re: [IV] Spoiler Script on Fri Oct 23, 2009 11:31 am

cool, I'm on it.. many thanks for the pointers Big-

this script hook, will it work with xliveless? I have native trainer installed

also, there's 4 apps on that MS page, I need the visual C++ express edition yes?

View user profile

6 Re: [IV] Spoiler Script on Fri Oct 23, 2009 11:49 am

Kotton wrote:cool, I'm on it.. many thanks for the pointers Big-

this script hook, will it work with xliveless? I have native trainer installed

also, there's 4 apps on that MS page, I need the visual C++ express edition yes?


1. Yes. I use XLiveLess also.
2. Yes, you download the one in the yellow box which says "Visual C++ Express Edition".


_________________
Some links for modding information:
• GTAModding Wiki
• Документация по моддингу GTA
• Sanny Builder (Русский)
• Sanny Builder Profile

View user profile http://gtamodding.com

7 Re: [IV] Spoiler Script on Fri Oct 23, 2009 12:42 pm

1.1 gigabytes!?

jebus christ man.. I need to install all this MYSQL/SQL server related junk just to write a effn script!? :suicide:
*feeling overwhelmed Kot gives up modeling to compensate for all time it will take to learn this ish*

View user profile

8 Re: [IV] Spoiler Script on Sat Oct 24, 2009 6:14 am



A-ah, I know, size is just crazy ) I don't know why it's so big. For me it's 2.60 MB - and downloaded in 10 minutes. And English version is the same size.

It's annoying to install it, I know, with the computer restating crap and all. Once you have a good knowledge in C++ though it will be helpful with MANY things not just this spoiler script or GTA IV scripting. ))


_________________
Some links for modding information:
• GTAModding Wiki
• Документация по моддингу GTA
• Sanny Builder (Русский)
• Sanny Builder Profile

View user profile http://gtamodding.com

9 Re: [IV] Spoiler Script on Fri Oct 30, 2009 10:52 pm

well ye, the exe that DL's everything is small.. but overall installation was 1.1gigs on my end..

but hey man, between my daughter, my work and the modeling, I really don't think I'll have time
to learn what I need to.. let alone the willpower and patience- so if you by chance get bored,
and feel like puttn your name on this mod alongside mine, I'd be grateful for days..

I've used misc_a, b and c to get the parts in game with the model, here's a sneak peek-
so if you're interested, just hit me back and I'll send over the beta..

View user profile

10 Re: [IV] Spoiler Script on Mon Nov 02, 2009 1:17 pm

so I take it that's a no? lol no worries man.. somethin'll pop up-
and actually, with it successfully in game now, I'm re-motivated to learn..
so I guess what I need to know is.. if we can manipulate(move and rotate)
those parts(misc_a,b,c) using C++ -we can right? it'd be comparable to

0392: make_object 0@ moveable 1
01BB: store_object 0@ position_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3
034D: rotate_object $2709 from_angle 0.0 to_angle 360.0 flag 0 and
034E: move_object 0@ to 1@ 2@ 3@ speed 13@ 16@ 19@ flag 1

commands used in cleo yes?



Original- EAGames (Shift)
Scratch work and Conversion- Kotton

Paint Job "Adihash" by daDUDE
Paint Jobs "TSW" & "Seeing Red" by Tar-Ton

-FEATURES-
Full Damage
Custom Handling
3 Paint Jobs
2 Carcols in traditional Vey Scheme
Rare '05 Rims
High Poly L1
Custom COL
Dual Color Lights
Optimized 4 IV
(no crappy enb)


DOWNLOAD



View user profile

11 Re: [IV] Spoiler Script on Mon Nov 02, 2009 4:44 pm



No, it was not a "no" - I was not ignoring your question. Maybe others in my city do this, but not me (joking) )) Just that I don't have time to visit this site (nor- others) everyday. To answer, yes you can do almost everything via C++ (reasonably of course). Right now, I can't download that impeccable car/try to write a script, because I'm using the latest Russian-patched version and the tools need updating.


As soon as I have more free-time, update the tools for personal use myself / or wait for the author - I'll download that car, and try to help write the script =)




commands used in cleo yes?



Yes.

(and this car, wow, man, you can see the hard work just by looking at it - №1)


_________________
Some links for modding information:
• GTAModding Wiki
• Документация по моддингу GTA
• Sanny Builder (Русский)
• Sanny Builder Profile

View user profile http://gtamodding.com

12 Re: [IV] Spoiler Script on Tue Nov 03, 2009 4:38 am

I was only razzn ya brother -but nice- thanks Big, that'd be freakn awesome-
and thx man, I think it came out really nice for my first IV mod

btw, if you register @theShop, hit me up via PM so I can VIP your ass

View user profile

13 Re: [IV] Spoiler Script on Tue Nov 03, 2009 1:11 pm

Sorry, I was just busy that's all. I'm on holiday. Yes, thx I already signed up to your site months ago as a different name.


_________________
Some links for modding information:
• GTAModding Wiki
• Документация по моддингу GTA
• Sanny Builder (Русский)
• Sanny Builder Profile

View user profile http://gtamodding.com

14 Re: [IV] Spoiler Script on Tue Nov 03, 2009 3:53 pm

then Happy Holidays brotha! LOL- what's your nick so I can VIP you?

you can also nab it @4mods (gta4-mods/gtagaming)

even tho I see the similarities, learning C++ is difficult and has made me discover the reason I learned cleo so well.. I had a decompiled main with thousands of real examples to draw and learn from :/ :sui: lol

View user profile

15 Re: [IV] Spoiler Script on Thu Oct 14, 2010 1:02 am

It's annoying to install it, I know, with the computer restating crap and all. Once you have a good knowledge in C++ though it will be helpful with MANY things not just this spoiler script or GTA IV scripting. ))


______________

anal sex
girls next door

View user profile

16 Re: [IV] Spoiler Script Today at 7:55 pm

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum