Author Topic: [WB] Warband Script Enhancer v3.1.5 (18/12/2012)  (Read 219589 times)

0 Members and 1 Guest are viewing this topic.

Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #15 on: December 28, 2010, 06:29:05 AM »
Fancy-schmancy!

Excellent work...thanks for sharing!



Davee

  • Squire
  • *
  • For every time you say LOW-PORN ORC, a viking dies
    • View Profile
    • Vikingr Module
  • Faction: Nord
  • MP nick: Davee
  • M&BWB
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #16 on: December 28, 2010, 02:56:37 PM »
Awesome! This can prove very useful. Thanks for doing this! :)
"its like having a hero on our side :D" -pez

Theoris

  • Guest
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #17 on: December 30, 2010, 12:31:13 PM »
Fantastic stuff, cmpxchg8b.

The only possible downside is that I can't host a server with a server provider (e.g JestServers), because they won't allow custom .exe's to be run.. with good reason, I guess..

If it's not too much, maybe you could contact the owner of JestServers (seems like a cool guy) and make him include WSE with the standard files (mb_warband_dedicated.exe etc).

Edit
I sent them a support ticket regarding it and this is what they sent me back.
Quote
While I trust your work, we would need the Visual C++ requirement removed to test this out.
Hmm..
« Last Edit: December 30, 2010, 12:40:38 PM by Theoris »

cmpxchg8b

  • Modder++
  • Grandmaster Knight
  • *
  • Master of rglPool
    • View Profile
  • Faction: Vaegir
  • MP nick: cmp
  • M&BWBWF&SNW
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #18 on: December 30, 2010, 03:23:03 PM »
Edit
I sent them a support ticket regarding it and this is what they sent me back.
Quote
While I trust your work, we would need the Visual C++ requirement removed to test this out.
Hmm..
The only parts of the Visual C++ redistributable package I need are the C runtime and the C++ standard library, but I can't remove those. However, as far as I know, Microsoft allows me to redistribute both libraries independently (as .dll files) without the need to install the whole package.
I'll give it a look, include them in the next version if possible.


On an unrelated note, I got a Steam version working, but I have to find a way to stop it from joining VAC (Valve Anti-Cheat) secured servers. It's not that big of a deal (there is no dedicated server for Steam, so the only VAC secured servers are listen servers), but as they say: better safe than sorry. :D
« Last Edit: December 30, 2010, 03:29:00 PM by cmpxchg8b »
Warband Script Enhancer v3.1.5 - additional operations, game scripts and triggers for Warband modders

Theoris

  • Guest
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #19 on: December 30, 2010, 04:20:30 PM »
Alright, awesome!  :P I'd kiss yer feet if i could.
« Last Edit: December 30, 2010, 04:22:46 PM by Theoris »

Vincenzo

  • External Developer
  • *
  • Coder of code
    • View Profile
    • Flying Squirrel Entertainment
  • Faction: Neutral
  • MP nick: FSE_Vincenzo
  • M&BWBWF&SNW
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #20 on: December 30, 2010, 06:52:23 PM »
I wouldn't worry about Vac so much if i were you, who uses that anyway?  :P

Like i said before on IRC, Great work man, great great work.
 

Theoris

  • Guest
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #21 on: December 30, 2010, 09:15:24 PM »
This is what I came up with.
(click to show/hide)

conclusion; a very powerful tool!

Urist

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Urist
  • M&BWB
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #22 on: December 30, 2010, 09:50:01 PM »
Nice, good to have people taking care of TW's unfinished business.

cmpxchg8b

  • Modder++
  • Grandmaster Knight
  • *
  • Master of rglPool
    • View Profile
  • Faction: Vaegir
  • MP nick: cmp
  • M&BWBWF&SNW
Re: [WB] Warband Script Enhancer v1.010 - string operations for the masses
« Reply #23 on: December 31, 2010, 02:28:41 AM »
Update!
v1020
- Added case insensitive parameter to string comparison functions (str_equals, str_contains, str_starts_with, str_ends_with).
- Added register_get and register_set operations. Example usage: looping over registers in script_game_receive_url_response.
- Added store_wse_version operation. Self-explanatory.
- Fixed trial mode check (wrong check at wrong location - can't get any worse).
- Bundled msvcp100.dll and msvcr100.dll. There should be no need to install the Visual C++ 2010 Redistributable Package anymore.

Warband Script Enhancer v3.1.5 - additional operations, game scripts and triggers for Warband modders

MadocComadrin

  • Water-Borne Annelid
  • Grandmaster Knight
  • *
  • ...et cum iustis non scribantur.
    • View Profile
  • Faction: Neutral
  • MP nick: MadocComadrin
  • M&BWBWF&S
Re: [WB] Warband Script Enhancer v1.020 - string operations for the masses
« Reply #24 on: December 31, 2010, 05:02:39 AM »
Excellent! *High Fives*

Although, I will say you've given me a  little bit more work to do with a side project of my own  :twisted:

Edit: Nice example  :lol:

And @Urist, Unfinished business? TW has put more effort in opening this game up for modding than most games on the market, and they are still working on adding new operations. Likewise, I could see why they wouldn't include string manipulation functions in the first place, and frankly, we didn't need string functions very much at all until very recently.

Edit 2: this should probably be moved to the Unofficial Tools Subforum.

Edit 3: If I could make a suggestion for a future version, could you add something in for making mappable keys? I think a lot of mods could benefit from having keys the client can set, even if they have to create their own menu for it.
« Last Edit: December 31, 2010, 05:54:19 AM by MadocComadrin »
Resident Wereparakeet - Tasty and Dangerous Pastry
Madmin - Sophistacted tools for responsible admins


cmpxchg8b

  • Modder++
  • Grandmaster Knight
  • *
  • Master of rglPool
    • View Profile
  • Faction: Vaegir
  • MP nick: cmp
  • M&BWBWF&SNW
Re: [WB] Warband Script Enhancer v1.020 - string operations for the masses
« Reply #25 on: December 31, 2010, 06:22:23 AM »
Edit 3: If I could make a suggestion for a future version, could you add something in for making mappable keys? I think a lot of mods could benefit from having keys the client can set, even if they have to create their own menu for it.
What do you mean by this? Mappable to what?
Warband Script Enhancer v3.1.5 - additional operations, game scripts and triggers for Warband modders

MadocComadrin

  • Water-Borne Annelid
  • Grandmaster Knight
  • *
  • ...et cum iustis non scribantur.
    • View Profile
  • Faction: Neutral
  • MP nick: MadocComadrin
  • M&BWBWF&S
Re: [WB] Warband Script Enhancer v1.020 - string operations for the masses
« Reply #26 on: December 31, 2010, 07:19:56 AM »
Let me be more specific, currently, we have two ways to get input from the keyboard, game keys, which can be redefined to specific keys by the user, and direct access to the keys themselves. When modders want to implement a feature that involves the keyboard, they are forced to use the latter (since using a game key would add to or override it's hard-coded function); however, this forces the modder to pick a key to be specifically dedicated to this. If a person playing the mod has redefined their game keys to this key, there is a problem, eg. Modder Joe implements a shield-bash to occur when a user presses the v key, but player Jim has redefined his kick key to v.

What would be nice is if you could find some way to essentially create "unused" game keys and operations to map them to keyboard keys. Modders could create the menus to map them. I hope that clears it up a bit.
Resident Wereparakeet - Tasty and Dangerous Pastry
Madmin - Sophistacted tools for responsible admins


Theoris

  • Guest
Re: [WB] Warband Script Enhancer v1.020 - string operations for the masses
« Reply #27 on: December 31, 2010, 08:00:51 AM »
Fine work, sir.

I just sent another support ticket regarding it to JestServers. If only they would include WSE in with the default package.. would be plain awesome.
« Last Edit: December 31, 2010, 08:10:34 AM by Theoris »

MadocComadrin

  • Water-Borne Annelid
  • Grandmaster Knight
  • *
  • ...et cum iustis non scribantur.
    • View Profile
  • Faction: Neutral
  • MP nick: MadocComadrin
  • M&BWBWF&S
Re: [WB] Warband Script Enhancer v1.020 - string operations for the masses
« Reply #28 on: December 31, 2010, 09:46:20 AM »
Ah, I was going to do that eventually! If you post on the forums too, I'll add my voice. Heck, just tell Jest that one of his other customers likes this too.
Resident Wereparakeet - Tasty and Dangerous Pastry
Madmin - Sophistacted tools for responsible admins


Theoris

  • Guest
Re: [WB] Warband Script Enhancer v1.020 - string operations for the masses
« Reply #29 on: December 31, 2010, 10:07:30 AM »
Alright, cool. I just created the thread, check it out and please respond if you can.

Anyway, I just managed to create a Private Message function with WSE. Awesome indeed.