preload button hover image:
HomeSearchRankingsStatisticsAboutContact
Current Time: Feb 21, 2018, 10:37:05 am
 Mount&Blade Repository » Mod Source Files » Source code for Battle Time 1.31
      
Registration is not required to download. However, it will allow you to vote, comment, and request upload access. Forgot your password?
View this file on the M&B NexusFile Listing: Source code for Battle Time 1.31
Last Updated: Sep 24, 2011, 05:34:53 pm
First Created: Mar 25, 2011, 04:42:56 pm
File version: 1.31
For M&B version: Warband 1.143
Downloads: 577 (935) Size: 4.64 MB
Views: 4,612 (5,871) Type: ZIP
Rating (0 votes): Unrated
Description
Source code for Battle Time 1.31 for Warband 1.143
By Egbert

Battle Time thread: http://forums.taleworlds.com/index.php/topic,150827.0.html

v1.21 for WB 1.134
v1.31 for WB 1.143

This code is OSP, if you want to use it, don't ask permission, just give proper credit and let me know if you fix any bugs.
Version 1.2 and v1.3 require the Warband Script Enhancer for the server: http://forums.taleworlds.com/index.php/topic,151194.0.html
The source for v1 is also included for interested modders because it is designed quite differently. I do not recommend using v1 anymore, because storing values in high numbered registers can cause crashes.



To add Battle Time to your mod:
1. Copy the 3 extra module files (these only include code for Battle Time):
module_coop_mission_templates.py
module_coop_presentations.py
module_coop_scripts.py
2. Search all files for #COOP BEGIN
3. Copy the parts from #COOP BEGIN to #COOP END into the corresponding module files
4. Copy the SceneObj folder to your mod (this overwrites scn_lair_steppe_bandits.sco to fix the ai mesh)
5. If you don't want the player's gold display in MP mode, copy game_variables.txt to your mod folder
6. Download and install the Warband Script Enhancer, and paste the header_operations_addon.py file at the end of your header_operations.py
7. In your mod's module.ini change damage_interrupt_attack_threshold_mp = 3.0



Two current bugs in Native are noted in the code:
A bug where hero troops can't spawn in MP with both a bow and throwing weapons. The fix is marked by #ITEM BUG WORKAROUND.
A bug where clients may crash if they leave and rejoin a dedicated server. The fix is marked by #SERVER BUG WORKAROUND.
Commands
More From This Author
Comments
IP: logged
 Source code for Battle Time 1.2 (v 1.2)  » posted by Toasticuss on Mar 25, 2011, 08:38:09 pm
:shock:

Yessssssssssssssssssssssssssss! For anyone that doesnt know, this is a co-op mod for Warband!! It lets you play over lan or internet with your SP games.

To help incorporate this into your mod I would suggest using Windows Grep - http://www.wingrep.com/ Kinda old but it works great for searching through a folder full of files with text in them for a certain phrase, be sure to add *.py to the file type list.

Also check out Win Merge - http://winmerge.org/

It compares files and shows you the differences.
comment last edited by Toasticuss on Mar 25, 2011, 08:56:28 pm
IP: logged
 Source code for Battle Time 1.2 (v 1.2)  » posted by computica on Mar 27, 2011, 02:34:06 pm
Thanks Egbert! I'll consider putting this into SOD Warlords.
IP: logged
 Source code for Battle Time 1.2 (v 1.2)  » posted by Toasticuss on Apr 02, 2011, 01:51:56 am
You missed a spot of #COOP code that made quite a few errors when I first tried compiling, at the bottom of Header_operations theres a bunch of code to copy and now after copying all of that I'm getting an error with the scripts file about an object
Code:
Exporting scripts... Error: Unable to find object:skl_reserved_9 ERROR: Illegal Identifier:skl_reserved_9 Error: Unable to find object:skl_reserved_9 ERROR: Illegal Identifier:skl_reserved_9 Error: Unable to find object:skl_reserved_9 ERROR: Illegal Identifier:skl_reserved_9 Error: Unable to find object:skl_reserved_9 ERROR: Illegal Identifier:skl_reserved_9 Exporting mission_template data... Exporting game menus data... exporting simple triggers... exporting triggers... exporting dialogs... Checking global variable usages... Exporting postfx_params... ______________________________ Script processing has ended. Press any key to exit. . .

Any idea whats wrong?
comment last edited by Toasticuss on Apr 02, 2011, 01:59:00 am
IP: logged
 Source code for Battle Time 1.2 (v 1.2)  » posted by knezmilos on Apr 07, 2011, 08:43:27 am
"Toasticuss" could you make a better guide how to add it in any mod?
IP: logged
 Re: Source code for Battle Time 1.2 (v 1.2)  » posted by Toasticuss on Apr 07, 2011, 12:28:30 pm
knezmilos wrote:
"Toasticuss" could you make a better guide how to add it in any mod?

Yeah, I could do that, I have BattleTime working in Kengeki its just a little buggy and Egbert isnt quite sure why either...

It'll be posted in The Forge if I get around to it, all you need to do is look for #COOP in each file, I used Grep to do that, then put it in at the exact same spot for every other file.
comment last edited by Toasticuss on Apr 07, 2011, 12:29:41 pm
HomeSearchRankingsStatisticsAboutContact

Hosted by Hypernia.
Website © 2018 FenriSoft. The core site script is PHCDownload (© 2005-2018).