News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: SWEGTAs Lua Tutorial Corner  (Read 34424 times)

0 Members and 1 Guest are viewing this topic.

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
SWEGTAs Lua Tutorial Corner
« on: January 09, 2013, 02:47:48 PM »
Introduction
Welcome to my Lua Tutorials thread!
Here I'll discuss and explain certain parts and how-to's when it comes to making basic missions for Bully.
We'll go over from simple things such as player teleporting, ped spawning and compiling to more advanced subjects.

To find the tutorial you're looking for simply press CTRL + F and search for a keywoard (for example: spawning).

Things You'll need

Notepad ++
http://notepad-plus-plus.org/download/v6.2.3.html
This is requirred for you to easily edit and manage your scripts. Notepad ++ has a capability of recognising certain codes (in this case Lua).

Luac
http://www.bully-board.com/index.php?action=downloads;sa=view;down=60
The Lua Compiler will help you compile the scripts and make them playable ingame.

Visual Studio 2008
http://download.microsoft.com/download/d/c/3/dc3439e7-5533-4f4c-9ba0-8577685b6e7e/vcsetup.exe
For now, Luac runs on Visual Studio 2008. In order to use Luac you must have this installed.

IMGTool
http://grandtheftauto.filefront.com/file/IMG_Tool;44920
This is needed for you to be able to extract and replace scripts in Bully.

----------------------------------------------------------------------------
If you haven't, please check out my other tutorial thread:
http://www.bully-board.com/index.php?topic=16614.0

----------------------------------------------------------------------------



Part 1: Basic Setup
Description: From here we'll start with the very basics such as: Setting player health and teleporting.
Key Words: Part 1 , setup , basic , spawning , teleport , health


Part 2: Compiling Scripts
Description: I'll go through on how to compile the mission you made.
Key Words: compile , compiling, scripts, luac, compiler, cmd


Part 3: Bodyguards
Description: Possibly the most requested subject is now explained.
Key Words: bodyguard, ped, spawn, coords, recruit, spawning

Part 4: Problems and Errors
Description: Fixing your scripts and making them able to compile propperly.
Key Words: error, fix, work, problem, glitch, script

« Last Edit: April 25, 2013, 10:14:49 AM by SWEGTA »

Offline xXxNarumi

  • Apprehended (Captured)
  • Hero Member
  • ****
  • Posts: 2,641
  • Gender: Male
  • xNarumi wont be missed.
    • View Profile
Re: SWEGTA Lua Tutorial Corner
« Reply #1 on: January 09, 2013, 03:19:13 PM »
NOBODY NOBODY FUCK WITH MAH KITCHEN!

Lol nice Tut it'll help ALOT

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: SWEGTA Lua Tutorial Corner
« Reply #2 on: January 09, 2013, 04:10:11 PM »
NOBODY NOBODY FUCK WITH MAH KITCHEN!

Lol nice Tut it'll help ALOT

Wait what?! D:
Hehe thanks! I hope it does ;)

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: SWEGTA Lua Tutorial Corner
« Reply #3 on: January 10, 2013, 03:11:23 PM »
I fainly understood what I did wrong. Tnx!

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: SWEGTA Lua Tutorial Corner
« Reply #4 on: January 10, 2013, 03:48:47 PM »
I fainly understood what I did wrong. Tnx!


What exactly did you do wrong, if I may ask? :)

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: SWEGTA Lua Tutorial Corner
« Reply #5 on: January 10, 2013, 03:53:08 PM »
Very nice tutorial.

This will really help some of the new modders that have a hard time following my magazine...etc.  8)

Offline Hopking

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
    • View Profile
Re: SWEGTA Lua Tutorial Corner
« Reply #6 on: January 10, 2013, 04:36:46 PM »
This is very straight-forward... thank you a lot for this!

Offline SWEGTA

  • Da Forum Luffs Me!
  • *****
  • Posts: 6,422
  • Gender: Male
  • Swee Gee Tee Ayy
    • View Profile
    • Bully & GTA videos
Re: SWEGTA Lua Tutorial Corner
« Reply #7 on: January 10, 2013, 04:58:55 PM »
This is very straight-forward... thank you a lot for this!


You're welcome!
Glad that you enjoyed it :)

Offline xXxNarumi

  • Apprehended (Captured)
  • Hero Member
  • ****
  • Posts: 2,641
  • Gender: Male
  • xNarumi wont be missed.
    • View Profile
Re: SWEGTA Lua Tutorial Corner
« Reply #8 on: January 10, 2013, 05:22:24 PM »
Video kill the radio store
Video kill the radio store
Rush rush ca tee ay oh,
 Rush rush be ne ay oh,
 Lush lush ca tee ay oh,
 Yo yo no mo ay oh
Feel like My inside has come out again
Feels Like I just can't take no more.
  Reference around here :O

deadpoolXYZ

  • Guest
Re: SWEGTA Lua Tutorial Corner
« Reply #9 on: January 10, 2013, 05:34:02 PM »
Video kill the radio store
Video kill the radio store
Rush rush ca tee ay oh,
 Rush rush be ne ay oh,
 Lush lush ca tee ay oh,
 Yo yo no mo ay oh
Feel like My inside has come out again
Feels Like I just can't take no more.
  Reference around here :O

Video kill the radio star?

xDDDDDDDDDDDDDDD ???

Offline MikerBarba

  • Cold as winter ice, this is your paradise?
  • Sr. Member
  • ***
  • Posts: 718
  • Gender: Male
    • View Profile
Re: SWEGTA Lua Tutorial Corner
« Reply #10 on: January 10, 2013, 05:46:56 PM »
i don't understand >:(

E32050TRA

  • Guest
Re: SWEGTA Lua Tutorial Corner
« Reply #11 on: January 10, 2013, 06:07:51 PM »
where is the tut?

Offline UltimateGamer1

  • BullyLeecher
  • Full Member
  • ***
  • Posts: 189
  • Gender: Male
    • View Profile
Re: SWEGTA Lua Tutorial Corner
« Reply #12 on: January 10, 2013, 07:19:13 PM »
Yeah straight forward mudda fuckaa enjoyed this shit.

Offline Evolution

  • Elitist
  • *********
  • Posts: 13,574
  • Gender: Male
    • View Profile
Re: SWEGTA Lua Tutorial Corner
« Reply #13 on: January 10, 2013, 07:39:15 PM »
^ LOL? Calm down, my good sir.

Offline xXxNarumi

  • Apprehended (Captured)
  • Hero Member
  • ****
  • Posts: 2,641
  • Gender: Male
  • xNarumi wont be missed.
    • View Profile
Re: SWEGTA Lua Tutorial Corner
« Reply #14 on: January 10, 2013, 07:50:22 PM »
NO!