cRPG

cRPG => General Discussion => Topic started by: zagibu on June 01, 2013, 02:02:21 pm

Title: How cRPG works
Post by: zagibu on June 01, 2013, 02:02:21 pm
Maybe you have wondered how exactly it is possible for a mod to introduce persistent character data, when the main game doesn't even have it. I certainly have. One day in IRC, I asked cmp about it, and he was kind enough to explain it to me. With his explanation, I was able to reproduce the core of cRPG: getting a warband game server to talk to a custom webserver and receiving its responses. Of course, this is not really groundbreaking, as many other people have long since achieved this, and you can find a lot of information in the TW forums. I merely wanted to post this here so cRPG players have easier access to this information.

Part 1: Basic roundtrip
(click to show/hide)

Part 2: Making items available to players dictated by the character server
(click to show/hide)
Title: Re: How cRPG works
Post by: Byrdi on June 01, 2013, 05:28:10 pm
Very interesting. But why do we need this information?

I doubt anyone will or can make a good alternative to cRPG before the release of M&B 2.

Anyway, nice to know how it all works.
Title: Re: How cRPG works
Post by: BASNAK on June 01, 2013, 05:39:07 pm
Incoming Razfrenzy RPG without any clans and autoblockers
Title: Re: How cRPG works
Post by: JackieChan on June 01, 2013, 06:10:41 pm
time to hack crpg and steal all the looms

(click to show/hide)
Title: Re: How cRPG works
Post by: zagibu on June 01, 2013, 06:16:17 pm
Very interesting. But why do we need this information?

I doubt anyone will or can make a good alternative to cRPG before the release of M&B 2.

Anyway, nice to know how it all works.

Well, I don't know. Persisting character data must not necessarily lead to a cRPG alternative. And I agree that nobody really needs this information.
Title: Re: How cRPG works
Post by: zagibu on June 02, 2013, 11:28:05 pm
Part 2 is up explaining how to make items available to a player based on information taken from the character server.
Title: Re: How cRPG works
Post by: Tore on June 03, 2013, 12:41:56 am
wat
Title: Re: How cRPG works
Post by: Johammeth on June 03, 2013, 04:16:51 am
I am extremely disappointed that a thread entitled "How cRPG works" has content other than "get killed by somebody and complain that their class is OP."
Title: Re: How cRPG works
Post by: Taran on September 27, 2013, 11:32:35 am
I want third part!!!!


Thank you very much
Title: Re: How cRPG works
Post by: zagibu on September 27, 2013, 12:50:48 pm
I'm currently working on something else, sorry, but I might get back to it eventually. The other thing is also cRPG related, though, at least that's something, right?
Title: Re: How cRPG works
Post by: Ellie on September 27, 2013, 03:29:09 pm
I am extremely disappointed that a thread entitled "How cRPG works" has content other than "get killed by somebody and complain that their class is OP."


I'm more disappointed by the lack of "It doesn't work."
Title: Re: How cRPG works
Post by: Tomas_Miles_again on September 27, 2013, 10:07:37 pm
Very interesting... maybe one day someone will take this info and make a lineage or dynasty based mod whereby people can choose troops from the currently alive generation...until they die and have to choose another. Random idea
Title: Re: How cRPG works
Post by: Senni__Ti on September 28, 2013, 12:05:02 am
knows_common = knows_riding_1|knows_trade_2|knows_inventory_management_2|knows_prisoner_management_1|knows_leadership_1
It's listed near the top of module_troops (~line 100).

Title: Re: How cRPG works
Post by: zagibu on September 28, 2013, 12:45:30 am
Thanks, I have removed that flag from the troop definition.
Title: Re: How cRPG works
Post by: Senni__Ti on September 28, 2013, 01:00:49 am
Also for the event type (the 113 bit), I'd recommend making a new multiplayer_event_###### entry in header_common in the client section. (setting it to 113 there)

Helps keep everything in one place, obvious in function and prevents overlapping of events :p.

e.g.

multiplayer_event_admin_set_disallow_ranged_weapons           = 47 #I think this is the last native client one :p
multiplayer_event_set_player_gear                                          = 113

#server events

Then using multiplayer_event_set_player_gear instead of 113 elsewhere :).

113 works fine for basic demonstration purposes though :p, not sure how far you wanted this to go.
Title: Re: How cRPG works
Post by: zagibu on September 28, 2013, 01:22:20 am
As far as my motivation lasts, which is usually not very far, unfortunately. I still plan to continue working on it, though.