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


Show Posts

* Messages | Topics | Attachments

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - SHAPADO1245

Pages: 1 2 [3]
31
Script Modding / Re: Darby and Johnny BOSS BETA betas source codes
« on: February 23, 2021, 12:55:46 PM »
Current Source Code: http://www.mediafire.com/file/qrdfphislmmkm41/Current_Source_Code.lua/file

IF THE LINK DOESN'T WORK, PROBABLY THERE IS ANOTHER ONE MORE UPDATED

32
Beta Releases / Re: Darby and Johnny BOSS BETA Mission
« on: February 23, 2021, 12:52:18 PM »
THIS IS A BETA.
Darby and Johnny BOSS Battle v0.1.4


--- Update 0.1.2:
* Bug Fixes;
   * Johnny Vincent A-Pose;
   * Darby Harrington Fighting Style;
   * NonMission Peds;
   * Johnny Vincent theme fix.
* Features;
   * TextPrintString test.


--- Update 0.1.3:
* Bug Fixes;
   * Mission Fail.


--- Update 0.1.4:
* Features;
   * Darby and Johnny boss bar;
* Changes;
   * TextPrintString time, 3 seconds to 2.5 seconds;
   * More 8,87% Johnny attack frequency;
   * More 15% Johnny damage scale.
   

----- Mod Installation
DON'T FORGET THE BACKUP
Easy Installation:
1) Copy the Scripts.img and paste in "Bully Folder"/Scripts/Scripts.img
2) Copy the Scripts.dir and paste in "Bully Folder"/Scripts/Scripts.dir
3) Copy the Objects folder and paste in the bully folder
4) Copy the Config folder and paste in the bully folder
5) Just open the game and go to a Arcade Machine in the Boys' Dorm in the school


DON'T FORGET THE BACKUP
Hard Installation:(If you don't understand this just ignore that)
1) Copy the ArcRace1.lur
2) Open the Scripts.img in you bully folder
3) Delete the ArcRace1.lur and add the new ArcRace1.lur
4) Rebuild the file
5) Copy the pedstats.dat and paste in "Bully Folder"/Config/dat
6) Copy the ide.img and ide.dir
7) Just open the game and go to a Arcade Machine in the Boys' Dorm in the school

again DON'T forget to do a BACKUP



~~~~~ Notes for ScriptMod Professional ~~~~~

If you want to see the Source Code.lua, you can but if you want use the Source Code.lua to build a mod
don't forget to put my name in the Credits.



DOWNLOAD: http://www.mediafire.com/file/uy9c4t3zumy65lh/Darby_and_Johnny_BOSS_BETA_Mission_v0.1.4.rar/file

33
Script Modding / Re: Darby and Johnny BOSS BETA betas source codes
« on: February 23, 2021, 11:17:03 AM »
I saw a problem when you lose in the mission, which would be when you are knocked down, it is impossible to lose the mission because even if you have 0 life "You Passed" will appear in the end. If anyone has a solution for this you can give me a reply.
You pass the mission because you included "MissionSucceed()" in MissionCleanup.
Remember that MissionCleanup runs after you beat/fail a mission.

I also looked into Johnny's A-pose issue, you need to lo load "G_Striker".
Code: [Select]
LoadAnimationGroup("G_Striker")Darby works as is, so this is pretty much the only animation group you need to load for your script.
No need to touch ide.img, if you messed with it just to load his animations.

Also, question:
What are the Attitude.dat and PedPop.dat for?
They do stuff that has nothing to do with your mission. Not sure why you included them.

Thank you SimonBestia
All issues have been fixed.

Current Source Code: http://www.mediafire.com/file/1ok297pkjyzqhzx/Current_Source_Code.lua/file

IF THE LINK DOESN'T WORK, PROBABLY THERE IS ANOTHER ONE MORE UPDATED

34
Beta Releases / Re: Darby and Johnny BOSS BETA Mission
« on: February 23, 2021, 11:14:41 AM »
THIS IS A BETA
Darby and Johnny BOSS Battle v0.1.3


--- Update 0.1.2:
* Bug Fixes;
   Johnny Vincent A-Pose
   Darby Harrington Fighting Style
   NonMission Peds
   Johnny Vincent theme fix
* Features;
   TextPrintString test

--- Update 0.1.3:
* Bug Fixes;
   Mission Fail
   


----- Mod Installation
DON'T FORGET THE BACKUP
Easy Installation:
1) Copy the Scripts.img and paste in "Bully Folder"/Scripts/Scripts.img
2) Copy the Scripts.dir and paste in "Bully Folder"/Scripts/Scripts.dir
3) Copy the Objects folder and paste in the bully folder
4) Copy the Config folder and paste in the bully folder
5) Just open the game and go to a Arcade Machine in the Boys' Dorm in the school

DON'T FORGET THE BACKUP
Hard Installation:(If you don't understand this just ignore that)
1) Copy the ArcRace1.lur
2) Open the Scripts.img in you bully folder
3) Delete the ArcRace1.lur and add the new ArcRace1.lur
4) Rebuild the file
5) Copy the pedstats.dat and paste in "Bully Folder"/Config/dat
6) Copy the ide.img and ide.dir
7) Just open the game and go to a Arcade Machine in the Boys' Dorm in the school

again DON'T forget to do a BACKUP



~~~~~ Notes for ScriptMod Professional ~~~~~

If you want to see the Source Code.lua, you can but if you want use the Source Code.lua to build a mod
don't forget to put my name in the Credits.

DOWNLOAD: http://www.mediafire.com/file/76mrjcf701r255x/Darby_and_Johnny_BOSS_BETA_Mission_v0.1.3.rar/file

35
Script Modding / Darby and Johnny BOSS BETA betas source codes
« on: February 22, 2021, 09:18:50 PM »
I have working in a mission in this topic:  https://bully-board.com/index.php?topic=25723
And here I gonna upload each test source code.

Just go to the most current link that I sent on this topic and download the source code. And if you have any tips, you can send here on this topic.

The oldest source codes i gonna delete. So you will not gonna able to download.


Current Source Code: http://www.mediafire.com/file/9pdvbm1tj84pkc1/Current_Source_Code.lua/file

IF THE LINK DOESN'T WORK, PROBABLY THERE IS ANOTHER ONE MORE UPDATED

36
Introduce Yourself / Re: Just a Brazillian guy
« on: February 22, 2021, 09:01:42 PM »
Blz mano é nois. (It's impossible to use google translate on this kkkk)

37
Beta Releases / Re: Darby and Johnny BOSS BETA Mission
« on: February 22, 2021, 08:04:22 PM »
I saw a problem when you lose in the mission, which would be when you are knocked down, it is impossible to lose the mission because even if you have 0 life "You Passed" will appear in the end. If anyone has a solution for this you can give me a reply.

And if you want give me some tips just send me a reply in a "Scripting Modding" section.
New topic in Scripting Modding = https://bully-board.com/index.php?topic=25725

38
Beta Releases / Re: Darby and Johnny BOSS BETA Mission
« on: February 22, 2021, 05:00:15 PM »
THIS IS A BETA
Darby and Johnny BOSS Battle v0.1.2 BETA

---Update 0.1.2:
* Bug Fixes;
   Johnny Vincent A-Pose;
   Darby Harrington Fighting Style;
   NonMission Peds;
   Johnny Vincent theme fix.
* Features.
   TextPrintString test.
   

----- Mod Installation
DON'T FORGET THE BACKUP
Easy Installation:
1) Copy the Scripts.img and paste in "Bully Folder"/Scripts/Scripts.img
2) Copy the Scripts.dir and paste in "Bully Folder"/Scripts/Scripts.dir
3) Copy the Objects and paste in the bully folder
4) Copy the Config and paste in the bully folder
5) Just open the game and go to a Arcade Machine in the Boys' Dorm in the school


DON'T FORGET THE BACKUP
Hard Installation:(If you don't understand this just ignore that)
1) Copy the ArcRace1.lur
2) Open the Scripts.img in you bully folder
3) Delete the ArcRace1.lur and add the new ArcRace1.lur
4) Rebuild the file
5) Copy the Attitude.dat, PedPop.dat and pedstats.dat and paste in "Bully Folder"/Config/dat
6) Copy the ide.img and ide.dir
7) Just open the game and go to a Arcade Machine in the Boys' Dorm in the school

again DON'T forget to do a BACKUP



----- Notes for ScriptMod Professional -----

If you want to see the Source Code.lua, you can but if you want use the Source Code.lua to build a mod
don't forget to put my name in the Credits.

DOWNLOAD: http://www.mediafire.com/file/aeywd4nrkdf7iva/Darby_and_Johnny_BOSS_BETA_Mission_v0.1.2.rar/file

39
Beta Releases / Re: Darby and Johnny BOSS BETA Mission
« on: February 22, 2021, 12:50:25 PM »
For the boss fight theme, I meant Johnny's.
You're playing MS_FightingJohnnyVincentFight when it should be MS_FightingJohnnyVincentBossFight. The former is the theme used when Johnny is on his bike.

Here are some general notes about your code, just for the sake of improving how you write it:
[spoiler_block]
In Bully's Lua, it's common practice to use the "main" function to do stuff like running every function 1 by 1, and only use MissionSetup for stuff like loading animations, etc... So:
Code: [Select]
MissionSetup = function() -- Functions Setups

BeforeMission()
YouAreAboutToBeBurdenedWithABlackEye()
AwThiIsGonnaBeFun()
AfterMission()

end
^You should rename this to main = function()

In Lua, in general, it's common practice to NOT change line after an "and". So:
Code: [Select]
BeforeMission = function() -- Real MissionSetup

repeat
Wait(0)
until SystemIsReady() and -- Wait the SystemIsReady and Is(Not)StreamingBusy (Effective in a very low spec PCs or PS2)
not IsStreamingBusy()

end
^This would be better: until SystemIsReady() and not IsStreamingBusy()

In Bully's Lua, it's common practice to have the last function that resets everything called MissionCleanup. So:
Code: [Select]
AfterMission = function() -- literally After-Mission

PedSetMaxHealth(gPlayer, 200)
PedSetHealth(gPlayer, 200)
DisablePunishmentSystem(false)
AreaTransitionXYZ(0, 260.1955872, -139.9802551, 6.109952927)
MissionSucceed()

end
^Rename this to MissionCleanup = function()
[/spoiler_block]

Here are the solutions to the issues you're having:
[spoiler_block]
First, AreaClearSpawners(), AreaClearAllPeds() and AreaClearAllVehicles.

^These are a "one-time thing", as in, they do what they do ONCE, and then they stop.
Solution: Either put them in a "while true do" loop, or, even better, don't use them. Instead, use StopPedProduction(false/true) or NonMissionPedGenerationDisable/Enable().
These will work forever and don't need to be in a loop.
Only use one of them, depending on what you need. The former removes ALL peds, the latter only removes peds that aren't related to the mission, but some peds like scripted ones(eg, football field gym peds) will still spawn.

Second, TextPrintString works like this:
Code: [Select]
TextPrintString("Top Text. I will last 3 seconds", 3, 1)
TextPrintString("Bottom Text. I will last 4 seconds", 4, 2)

Now for the code itself:
Code: [Select]
ImportScript("Library/LibTable.lua")
ImportScript("Library/LibTrigger.lua")
ImportScript("Library/LibSchool.lua")
ImportScript("SGlFunc.lua")
ImportScript("SZone.lua")
^NONE of these are necessary. These are already used by the game at all times. You can remove them.

Code: [Select]
AreaTransitionXYZ(27, -730, 382, 299) -- Teleport the "Camera" to Glass Jaw Boxing Club (Preps Boxing Gym) in the 2nd floor
PlayerSetPosXYZArea(-730, 382, 299, 27) -- Teleport the Player to Glass Jaw Boxing Club (Preps Boxing Gym) in the 2nd floor
AreaTransitionXYZ is NOT the camera. It's the player.
The only difference between AreaTransitionXYZ and PlayerSetPosXYZArea is that the former is a better function and it waits for the area surrounding Jimmy to load, before continuing with the script. You shouldn't use both.

Code: [Select]
PedSetFaction(darby, 5) and PedSetFaction(egjohnny, 4)
Peds are already programmed to be in a specific faction. You don't need to tell the game.
[/spoiler_block]

Here's how to stop the music, unpause the clock, and fix Johnny's A-pose:
[spoiler_block]
The music is stopped with the function SoundStopStream()

The clock is paused/unpaused with PauseGameClock/UnpauseGameClock().
(ArcRace1 already pauses the clock. You just have to unpause it in the MissionCleanup function)

You should be able to fix Johnny's animations by using these:
Code: [Select]
LoadAnimationGroup("3_BFightJohnnyV")
LoadAnimationGroup("P_Striker")
LoadAnimationGroup("Boxing")
LoadAnimationGroup("NIS_3_B")
LoadActionTree("Act/Conv/3_B.act")
LoadActionTree("Act/Anim/G_Ranged_A.act")
^You can find them in 3_B.lua.
You don't need to touch ide.img, but if they don't work, let me know.
[/spoiler_block]

Mod feedback:
[spoiler_block]
4000 and 7500 are WAY too high health values. I basically cheated to defeat both Darby and Johnny, and it wasn't that fun because they don't really fight back.
Bully, in general, is too easy.
[/spoiler_block]

Ok i'll try fix this in the code and see if work, thanks

EDIT: All the things work, the music stop at the end and the correct johnny vincent theme is added. Just the Johnny still A-Pose, maybe I use wrong the LoadAnimationGroup code or just don't work and I have to edit the ide.img. Darby Boss Battle jimmy health = 150, darby health = 1750
Johnny Boss Battle jimmy health = 300, johnny health = 2000 http://www.mediafire.com/file/l216s4ilps9fw1k/Darby_and_Johnny_BOSS_BETA_Mission_v0.1.1.rar/file

40
Beta Releases / Re: Darby and Johnny BOSS BETA Mission
« on: February 22, 2021, 09:08:53 AM »
We can't help you with the issues you're having if you don't share the source code.
Add it in a spoiler, or something.

Some issues I've noticed:
  • Johnny is in an A-pose most of the time.
  • His boss fight music is the wrong one.
  • When you return to freeroam, his song doesn't stop and the clock is still paused.

Ok i gonna put a new archive with the source code. But i think i need to add more things in this mod, like a ide.img, to avoid the A pose Johnny and some otherthings. And I don't know why the clock still paused, in the source code I gonna see this. The boss fight music is another one, the johnny theme or the darby theme?



Source Code:http://www.mediafire.com/file/vdi4cae2cb18f3j/Source_Code.lua/file

(And sorry to not add the source code before, I just forget)

41
Introduce Yourself / Just a Brazillian guy
« on: February 21, 2021, 10:22:56 PM »
I am just a Brazillian guy... and not fluent in english.

42
Beta Releases / Darby and Johnny BOSS BETA Mission
« on: February 21, 2021, 10:16:59 PM »
     THIS IS A BETA.

     This mod is about a "BOSS" fight with Darby and Johnny.
and... the download is there: http://www.mediafire.com/file/og6x0bdj81gqt6e/Darby_and_Johnny_BOSS_BETA_Mission.rar/file
any error please tell me in this post.

     ~~~Notes for ScriptMod Professionals~~~


     The commands AreaClearSpawners(), AreaClearAllPeds() and AreaClearAllVehicles() doesn't work and I don't know why  :(.
And I have the idea to use the "TextPrintString" but i change the seconds and but it keeps showing up for less than 1 second, like it’s blinking.
I downloaded another mod that uses TextPrintString in the script, and it also didn't work (appears the same error).
If you know why this happens to me or how to fix it, please answer me in this post. (I use 1.200 Bully Version)
I really need you help. :)   (And sorry if I miss some english word).

     and if you want to see the Source Code.lua, you can but if you want use the Source Code.lua to build a mod
don't forget to put my name in the Credits.

Pages: 1 2 [3]