Battle

Started by Chen Zhen, July 13, 2009, 08:44:54 AM

Previous topic - Next topic

Shades.

Just installed this on 2.1RC4 and get this error:

Quoteabase Error
BLOB/TEXT column 'outcome1' can't have a default value
File: /home2/xxxxx/public_html/xxxxx/Packages/temp/installScriptX.php
Line: 379

270 of the following in admin on one page load:

QuoteError
Type of error
General
Error message
The callable battle_language could not be called.
URL of page causing the error
https://xxxxx.com/index.php?action=admin;area=logs;sa=errorlog;desc

Backtrace information
#0: call_helper()
Called from /home2/xxxxx/public_html/xxxxx/Sources/Subs.php on line 5699
#1: call_integration_hook()
Called from /home2/xxxxx/public_html/xxxxx/Sources/Load.php on line 475
#2: reloadSettings()
Called from /home2/xxxxx/public_html/xxxxx/index.php on line 138

QuoteError
Type of error
General
Error message
Hook call: function "battle_language" in file /home2/xxxxx/public_html/xxxxx could not be called.
URL of page causing the error
https://xxxxx.com/index.php?action=admin;area=logs;sa=errorlog;desc

Backtrace information
#0: call_integration_hook()
Called from /home2/xxxxx/public_html/xxxxx/Sources/Load.php on line 475
#1: reloadSettings()
Called from /home2/xxxxx/public_html/xxxxx/index.php on line 138

And it's not installed. I guess it installed the hooks only I have to delete them individually?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Diego Andrés

It's outdated I think, try the one on Chen Zhen signature or the package from GitHub?
Although hasn't been updated for a while there either. https://github.com/Underdog-01/Battle

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

Ok well the one on here said last updated October 15, 2021, 11:01:48 PM otherwise I wouldn't have even tried it lol!

Yeah and the one over at his site is same version so hmmm...
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Chen Zhen


Thanks for the report.

Your MySQL or MariaDB likely has some sort of strict mode enabled which won't allow/tolerate default values for text columns. It shouldn't be necessary for those to have default values so I just changed the installer.

Try the updated version & let me know if it works for you.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Shades.

Quote from: Chen Zhen on October 22, 2021, 06:03:50 PMThanks for the report.

Your MySQL or MariaDB likely has some sort of strict mode enabled which won't allow/tolerate default values for text columns. It shouldn't be necessary for those to have default values so I just changed the installer.

Try the updated version & let me know if it works for you.
Sorry it took me so long to reply, I've been ill for a bit but all better now.

I download the latest version and everything is working great now. Thanks 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

While "Exploring" and then battling a monster and after beating it I got an error in admin only:

QuoteError
Type of error
General
Error message
8: Trying to access array offset on value of type int
File
/home2/*****/public_html/*****/Sources/BattleQuests.php
Line
189
URL of page causing the error
https://*****.com/index.php?action=battle;sa=quest;home;

Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/BattleQuests.php on line 189
#1: battle_quest()
Called from /home2/*****/public_html/*****/Sources/Battle.php on line 109
#2: battle()
Called from /home2/*****/public_html/*****/index.php on line 187
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

#466
2.1RC4 - Battle V1.17.7

Playing around today and clicked on "Quests" and received the following error in admin:

QuoteError
Type of error
General
Error message
8: Trying to access array offset on value of type int
File
/home2/*****/public_html/*****/Sources/BattleQuests.php
Line
189
URL of page causing the error
https://*****.com/index.php?action=battle;sa=quest;home;

Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/BattleQuests.php on line 189
#1: battle_quest()
Called from /home2/*****/public_html/*****/Sources/Battle.php on line 109
#2: battle()
Called from /home2/*****/public_html/*****/index.php on line 187

Also get the following error 12 times when editing battles in admin:

QuoteError
Type of error
Undefined_vars
Error message
8: Undefined index: battle_campaign_membergroups
File
/home2/*****/public_html/*****/Themes/default/Battle_Admin.template.php
Line
1071
URL of page causing the error
https://*****.com/index.php?action=admin;area=battle;sa=edit_campaign;id_campaign=1;

Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Themes/default/Battle_Admin.template.php on line 1071
#1: template_campaignEdit()
Called from /home2/*****/public_html/*****/Sources/Load.php on line 2701
#2: loadSubTemplate()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 4051
#3: obExit()
Called from /home2/*****/public_html/*****/index.php on line 190
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Chen Zhen


Thanks for the reports.



I updated the package to version 1.17.8 which should fix what you reported.
Campaign/quest permissions are no longer restricted to post based membergroups.
You can now opt regular or post based membergroups from the Battle Admin->Config page.
This enables permission settings for your campaigns in the types of membergroups that are opted.

You can use the link in your Battle Admin page to download the updated package.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

TurtleKicker

Is an update for SMF 2.1.1 on the radar?

FrizzleFried

Does anyone have BATTLE running on their website?  Of course there is the one running at the Chen's site but anyone else??

TurtleKicker

Quote from: FrizzleFried on June 24, 2022, 09:55:33 AMDoes anyone have BATTLE running on their website?  Of course there is the one running at the Chen's site but anyone else??
I do, now I just need users. :D

Question, though: I'm trying to upgrade to the latest version (1.17.9.1, from  1.17.9), but I'm getting a "File not found" when it tries to execute "remove_hooks.php"

SMF 2.1.2

Chen Zhen


I just double checked & that file is in the install file for both versions & both install/uninstall as they should.

When upgrading you have to uninstall any old version & delete it from your packages prior to installing a new version.
 


My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

TurtleKicker

Quote from: Chen Zhen on August 06, 2022, 10:26:27 AMWhen upgrading you have to uninstall any old version & delete it from your packages prior to installing a new version.

Yep, I'm aware of that.

Oddly enough, when I tried again tonight it removed fine without errors, so I'm up-to-date now.

TeamPD

Hello,

I have added new monster images to the already existing ones, but the new ones don't show up when I want to add them to my new added monsters in the Battle area. How can I get those images to show up in my admin for the Battle mod?

Kind regards,
Chris de Boer
On behalf of PotterDome

BugginIn

Just wanted to say, such a awesome mod here... Running on 2.0.19, all good.. Modified map, made it zombie and survival related as part of the forum, just really well done here...

The only weird thing is, and I'm sure someone figured it out; is on responsive theme. Have like 20+ mods attached and this is the only one that won't revert as responsive on a cell...

Any pointers by folks using it?




Thank you,

BugginIn

Arantor

How would you possibly make it responsive?

BugginIn

Quote from: Arantor on March 03, 2023, 05:23:09 AMHow would you possibly make it responsive?

8) That's the golden question if anyone has....

If not possible - can live with that answer, was just curious if someone did or can...


Thanks,

BigginIn

Arantor

That is kind of the problem: making it responsive requires a complete rethink of how the entire thing is displayed.

Diego Andrés

I'd just overflow it inside a container and call it a day

SMF Tricks - Free & Premium Responsive Themes for SMF.

Chen Zhen

It's probably ok on a 10.5" tablet in landscape view, however if you're referring to a 5" or 6" smartphone then Diego's idea is the simplest but requires scrolling to navigate the Battle page.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Advertisement: