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


Author Topic: GETTING STARTED (FOR NEWBIES)  (Read 7151 times)

0 Members and 1 Guest are viewing this topic.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
GETTING STARTED (FOR NEWBIES)
« on: December 30, 2013, 08:52:11 PM »
Sometimes one of the hardest parts of becoming a modder is knowing where the hell to even start. So I made this section to aid the new to begin their modding experience.

There are of course multiple field to mod in Bully. I will cover each of them with a different starting plan for newbies.

www.xfire.com

Xfire is used by a lot of the modders here. I suggest downloading it then adding people I put by each section to aid you. You can add me (DaBOSS54320) for any section of the guide, though scripts is my specialty.

A) Scripts
B) Skins/Models
C) Configuration

Script Modding

Interested in Script modding? My favorite. Popular scripters on xfire would be: DaBOSS54320, c00ld0c26, SWEGTA, madmancorp, tuffjtags

In Bully the scripting language used is LUA version 5.0.2. LUA is a fairly easy scripting language. When compiled, these LUA scripts are made into .LUR files. The .LUR files are then run by the game. You cannot read a .LUR file with a text editor (it's just a bunch of BS if you try) only a LUA source file. The game cannot run a LUA source file, only the compiled .LUR files. To convert or 'compile' you will need a compiler. The only one available at the moment for Bully scripts is one by Fred Tetra and presented by |XF|- MadmaN [AR] Download here

Now you have a compiler, great. But what use is that if you don't even know how to make a LUA script? Download the sample script I have created for this tutorial here

Use the compiler (Tutorial for compiler included with the download) to compile the script you just downloaded 'sample.lua' into 'ArcRace1.lur' after that we will need to put it into the Scripts.img archive. This archive contains all of the games scripts. We will be removing the script 'ArcRace1.lur' (The arcade race game in the boy's dorm) and then putting in it's place our custom script, which we named the same thing. Now when the game looks for 'ArcRace1.lur' it will find something different (and hopefully funner) then an arcade race, which will be your mod. How to open this Scripts.img archive? With an IMG editor of course! There is 3 IMG editors used around bully modding community. 1) The one by GTA Garage, this one isn't good for Bully but works anyway. It shouldn't be used but is anyway. 2) The Bully IMG editor made by MadmaN. 3) Another IMG editor made by MadmaN that is more complex and isn't made with a GUI. Not sure if the 3rd one is released fully yet but a few modders have it. I suggest the 2nd option, which you can get here

Open the tool, locate the 'Scripts.img' file found in your Bully directory (folder), and open it up. It now lists all of the game's scripts. Navigate to 'ArcRace1.lur' and removed it by a left click or clicking on it and pressing the 'delete' key. Then, go to Action>Add and add the new 'ArcRace1.lur' file we compiled from our 'sample.lua' script. Close the application (Important or the game will crash on loading) and then start up the arcade machine in the boy's dorm. The script for our modded script should now activate. It isn't a big script so all that will happen is you will be transitioned to the outside of the boy's dorm, given full health, and a new dog fighting style. If this dosen't happen, it means an error has occured and you should retry the steps above before moving on.

Now we have assured that we can compile and move around scripts, so now we need to actually make said scripts. Learn LUA 5.0.2 to do so. I suggest either the official 5.0.2 documentation or my tutorial.
LUA 5.0 Documentation
DaBOSS's Tutorial

If you chose my tutorial, you will already know how functions work with Bully. If you read the LUA documentation, it says nothing about Bully. To use with Bully, you'll need to know about what functions can be called in Bully and which ones need to be made in your scripts. For this I suggest reading the 2nd half of my tutorial as well as my tutorial has original LUA seperate of how to implement it with Bully.

If you've done everything above successfully your at a good start. Now talk with other modders, get involved in the forums, and you will be able to further your bully scripting skill. Right now you probably only know basics, and from here it is up to you to learn new functions to call in Bully, and everything else like that. Not everything is discovered yet either, in fact not even close. Try to discover new things your self by investigating Bully's files. Look in some scripts in the Scripts.img and edit them via a HEX editor (search it) or a text editor. It will look weird as it's compiled. The only way to really read the scripts right would be to decompile them first. This is a hard task, so I suggest you don't get into that until you become a better modder and think your up to the task. Looking via HEX or a text editor at compiled scripts will still reveal function names and a bit of the code of the scripts. This is a good way to find new functions, from there the only difficult part is finding out what parameters to use and ways to use it.




Other 2 sections coming soon. I already spent about a 20 minutes writing that ^ so I'll finish other 2 sections later.

Offline Neptune

  • Jr. Member
  • **
  • Posts: 9
    • View Profile
Re: GETTING STARTED (FOR NEWBIES)
« Reply #1 on: December 31, 2013, 04:03:42 AM »
I will join ;)

deadpoolXYZ

  • Guest
Re: GETTING STARTED (FOR NEWBIES)
« Reply #2 on: December 31, 2013, 01:11:50 PM »
Nice introduction for future modders. Very clear and complete!

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: GETTING STARTED (FOR NEWBIES)
« Reply #3 on: December 31, 2013, 03:41:32 PM »
^ Thanks, hopefully it will encourage new members to start modding.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: GETTING STARTED (FOR NEWBIES)
« Reply #4 on: January 01, 2014, 05:40:09 AM »
Done wisely, done great, easy to understand. 8/10

Offline Evolution

  • Elitist
  • *********
  • Posts: 13,574
  • Gender: Male
    • View Profile
Re: GETTING STARTED (FOR NEWBIES)
« Reply #5 on: January 01, 2014, 05:42:29 AM »
^ Thanks, hopefully it will encourage new members to start modding.

Nigga PLEASE! Not when some yee-yee ass nigga mark comes round n startz fuckin shit up nigga, i'm a BIG homie, you a LITTLE homie, boy.

But seriously...... What the fuck is with that stupid ass name?


GREAT JOB!  :ajajaxh5:

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: GETTING STARTED (FOR NEWBIES)
« Reply #6 on: January 01, 2014, 05:43:42 AM »
^ Thanks, hopefully it will encourage new members to start modding.

Nigga PLEASE! Not when some yee-yee ass nigga mark comes round n startz fuckin shit up nigga, i'm a BIG homie, you a LITTLE homie, boy.

But seriously...... What the fuck is with that stupid ass name?


GREAT JOB!  :ajajaxh5:

GIVE ME A HELL YEAH!!!

Offline GaryHarrington

  • A Guy Who Likes Open World and FPS Games
  • Sr. Member
  • ***
  • Posts: 515
  • Gender: Male
  • Just Love Bully and GTA ...Nothing Interested
    • View Profile
Re: GETTING STARTED (FOR NEWBIES)
« Reply #7 on: January 01, 2014, 07:59:18 PM »
To change it into STimeCycle?

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: GETTING STARTED (FOR NEWBIES)
« Reply #8 on: January 02, 2014, 04:24:31 AM »
Add parts of your script onto the STimeCycle source code, compile into STimeCycle.lur instead of ArcRace1.lur, and replace in the IMG archive. The STimeCycle source code is somewhere in mad's posts... use the search bar probably.

Offline ntnssc

  • Newbie
  • *
  • Posts: 0
    • View Profile
Re: GETTING STARTED (FOR NEWBIES)
« Reply #9 on: March 20, 2014, 11:54:55 PM »
It appears sample file as well as tutorial downloads are no longer working. I was really hoping to find a list of known functions since I haven't found much to go on right now.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: GETTING STARTED (FOR NEWBIES)
« Reply #10 on: March 21, 2014, 04:14:30 AM »
There are servel places you can go.
1. My tutorial at the scripting section.
2. DABOSS's bully function list at the modding discussion.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: GETTING STARTED (FOR NEWBIES)
« Reply #11 on: March 21, 2014, 05:07:59 PM »
It appears sample file as well as tutorial downloads are no longer working. I was really hoping to find a list of known functions since I haven't found much to go on right now.

Use a text editor and look through the scripts.img
Even though it is compiled, you can see function names. You need to guess on the parameters though...

Offline WhenLifeGivesYouLemons

  • xfire: 1emonthatsme
  • Sr. Member
  • ***
  • Posts: 971
  • Gender: Male
  • 波動バースト
    • View Profile
Re: GETTING STARTED (FOR NEWBIES)
« Reply #12 on: March 22, 2014, 09:12:43 AM »
It appears sample file as well as tutorial downloads are no longer working. I was really hoping to find a list of known functions since I haven't found much to go on right now.
In the future Madman plans on releasing a full list of Lua functions out to the public, so people can go out of there way to find the right syntax to make certain commands work.

I do suggest to check out Daboss or c00ld0cs tutorial. It helps out alot of new comers and makes it easier to understand.


Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: GETTING STARTED (FOR NEWBIES)
« Reply #13 on: March 25, 2014, 02:30:04 PM »
Im not popular? 

:( i want to be one of the cool guys.  :/