[ABD] Dicemod

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
Lord Phobos
Registered User
Posts: 771
Joined: Tue May 18, 2004 11:41 pm

Re: [ALPHA] Dicemod

Post by Lord Phobos »

Hi.

Sorry if this has been asked before: what should I do if I have installed on my 3.0.5 board teh older version from the ABD topic?
And: for subsilver?

Thanks! :D
CaNNon_
Registered User
Posts: 392
Joined: Wed Apr 29, 2009 2:07 am

Re: [ALPHA] Dicemod

Post by CaNNon_ »

Witch old version?

*EDIT*
sorry i didn't see the abd. :oops:
CaNNon_
Registered User
Posts: 392
Joined: Wed Apr 29, 2009 2:07 am

Re: [ALPHA] Dicemod

Post by CaNNon_ »

Sorry the old mod is 404, do you still have the zip?
Lord Phobos
Registered User
Posts: 771
Joined: Tue May 18, 2004 11:41 pm

Re: [ALPHA] Dicemod

Post by Lord Phobos »

CaNNon_
Registered User
Posts: 392
Joined: Wed Apr 29, 2009 2:07 am

Re: [ALPHA] Dicemod

Post by CaNNon_ »

The SQL has changed a bit so...

Best to use phpmyadmin find the dice table (should look something like this on a default install "phpbb3_dice") then use the old install directions to find and delete the old edits, double check your work and test it to make sure you have made no mistakes. Then you should be able to do the new install with automod.
Lord Phobos
Registered User
Posts: 771
Joined: Tue May 18, 2004 11:41 pm

Re: [ALPHA] Dicemod

Post by Lord Phobos »

Ok.
I do not use automod, but I will uninstall old version and install the new one.

Thanks.
Lord Phobos
Registered User
Posts: 771
Joined: Tue May 18, 2004 11:41 pm

Re: [ALPHA] Dicemod

Post by Lord Phobos »

I cannot find this part of the code in my posting.php file.
My php version is 3.0.5.

Code: Select all

	else
	{
		$offset = 0;
		$quote_string = "> ";
		$message = censor_text(trim($message_parser->message));
		// see if we are nesting. It's easily tricked but should work for one level of nesting
		if (strpos($message, ">") !== false)
		{
			$offset = 10;
		}
		$message = utf8_wordwrap($message, 75 + $offset, "\n");

		$message = $quote_string . $message;
		$message = str_replace("\n", "\n" . $quote_string, $message);
		$message_parser->message =  $post_data['quote_username'] . " " . $user->lang['WROTE'] . " :\n" . $message . "\n";
	}
Lord Phobos
Registered User
Posts: 771
Joined: Tue May 18, 2004 11:41 pm

Re: [ALPHA] Dicemod

Post by Lord Phobos »

Because of this, now I get this error when trying to post something anywhere. :(

Code: Select all

SQL

SELECT * FROM phpbb_dice WHERE post_id=

BACKTRACE


FILE: includes/db/mysql.php
LINE: 174
CALL: dbal_mysql->sql_error()

FILE: posting.php
LINE: 453
CALL: dbal_mysql->sql_query()
Please help me.
Lord Phobos
Registered User
Posts: 771
Joined: Tue May 18, 2004 11:41 pm

Re: [ALPHA] Dicemod

Post by Lord Phobos »

Solved using 0.44 version install file. :D
CaNNon_
Registered User
Posts: 392
Joined: Wed Apr 29, 2009 2:07 am

Re: [ALPHA] Dicemod

Post by CaNNon_ »

Glad you got it running. ;)
Saevior
Registered User
Posts: 9
Joined: Thu Oct 29, 2009 4:15 pm

Re: [ALPHA] Dicemod

Post by Saevior »

Hi again xD

I've got now this mod installed and running almost-properly. I've modified it a bit in order to get the "Total,text" function when using [dice][/dice] common tag. I've modified also the database to use "unlimited" rolls and dices (limited to "255", in fact) xDDD

But I've got a liiiiittle problem when I roll more than one dices in the same post.

For example:

Ragnarok rolls:

Code: Select all

Attack:
[dice]18d7[/dice]

Defense:
[dice]14d5[/dice]
Well, later, when the posted message is shown, I almost-always find:

Code: Select all

Ragnarock rolled 14-5 sided dices, obtained: 26
Ragnarock rolled 18-7 sided dices, obtained: 33
In this exact order. Where could I find the error for this?

Thanks!
User avatar
plenty
Registered User
Posts: 8
Joined: Wed Nov 25, 2009 6:16 pm

Re: [ALPHA] Dicemod

Post by plenty »

Not sure if that will help, but I've noticed that BBC tags are parsed (processed) in reversed order as well. Without knowledge of the mod files, I'm guessing that in the Dicemod data replacement (roll tag -> roll result) happens in order (effectively reversed). First tag in text is 1st to have it's data replaced, without identifying if its actually the right one. And hence last roll is processed 1st, it's replacing wrong tag.
Could you try 3 rolls in a row, and check if the middle one stays where it should? If it does, than I guess I'm right ;) That won't solve your problem, but maybe author will introduce some tag identification.
MalkContent
Registered User
Posts: 203
Joined: Mon Aug 18, 2008 10:00 am

Re: [ALPHA] Dicemod

Post by MalkContent »

@Saevior
pls pm me your board url if you are operating this mod on a live forum
I'd like to see this phenomenon my self

@all
There is a compliance with the new phpbb3.0.6 quick reply feature
when you hit the quick reply button and then hit the "full editor" button, a variable asked for remains undefined
I do not know if this has any effect at all and I doubt it, but I am not entirely sure, because it's in a codesegment of the mod I didn't bother with up to now, so I have no idea what this variable actually stands for.
What I understand that it is only important when editing a post. Which you can not do when getting to the editor the way I described earlier.
I'll try some stuff, but for now please try to avoid using quickreply->full editor for rolling dice to be sure that you don't get funny stuff to happen.
MalkContent
Registered User
Posts: 203
Joined: Mon Aug 18, 2008 10:00 am

Re: [ALPHA] Dicemod

Post by MalkContent »

@Saevior
did u already change/delete the post it happened in?
I didn't see the discribed post.
Also I tried rolling two rolls in one post and they were displayed in correct order.
Saevior
Registered User
Posts: 9
Joined: Thu Oct 29, 2009 4:15 pm

Re: [ALPHA] Dicemod

Post by Saevior »

Yeah O_O I've just seen it. I am now rolling dices in the same testing topic, and all the rolls are working O_O.. I'll send you that url again... probably I've made a copy/paste mistake or something like that...

Thanks anyway for all the help!
Locked

Return to “[3.0.x] Abandoned MODs”