Interface Tweaks

Forum closed. Read only permissions.

Moderator: Moderators

Message
Author
wang1337
Noob
Noob
Posts: 12
Joined: 18 May 2011, 21:12
Noob?: No

Interface Tweaks

#1 Post by wang1337 »

I made a few changes to the console output and the Wx defaults for my own tastes.

To add timestamps and ignore ugly spam like emotions and monsters missing me in the console I use this in config.txt:

Code: Select all

showTimeDomains attackMon, exp, ai_attack, route, parseMsg_statuslook, selfSkill, drop, console, attacked, skill, follow
showTimeDomainsFormat [H:M:S]
verbose 1
showDomain 0
squelchDomains attackedMiss, emotion
The output will now look like:

Code: Select all

[02:14:00] [100/ 96] You attack Monster X (1) (Dmg: 1135*2) (Delay: 140ms)
[02:14:00] [100/ 96] You attack Monster X (1) (Dmg: 1075) (Delay: 140ms)
[02:14:01] [100/ 96] You attack Monster X (1) (Dmg: 1150) (Delay: 140ms)
[02:14:01] You are again: Magnificat (Duration: 90s)
[02:14:01] You use Magnificat on yourself (Lv: 5)
[02:14:01] You have gained 733/1112 (0.01%/0.01%) Exp
[02:14:01] Item Appeared: Oridecon (0) x 1 (145, 116)
[02:14:01] Target died
[02:14:01] You are no longer: Gloria
[02:14:02] Item added to inventory: Oridecon (24) x 1 - Event

I also use Wx Interface for my bots but I didn't like having to open all the windows every time I loaded the bot. I also wanted the bot windows the same size. So I made a few changes to src/Interface/Wx.pm:

Code: Select all

--- Wxune.pm	Sat Feb 26 03:00:08 2011
+++ Wx.pm	Sat May 14 01:04:31 2011
@@ -395,11 +395,18 @@
 	#################
 
 	$frame->SetSizeHints(300, 250);
-	$frame->SetClientSize(730, 400);
+	$frame->SetClientSize(1130, 400);
 	$frame->SetIcon(Wx::GetWxPerlIcon);
 	$frame->Show(1);
 	EVT_CLOSE($frame, \&onClose);
 
+	$self->openStats(1);
+	$self->openInventory(1);
+	#&onMapToggle;
+	$self->openWindow (T('Report'), 'Interface::Wx::StatView::Exp', 1);
+	$self->{mapDock}->attach;
+
+
 	# For some reason the input box doesn't get focus even if
 	# I call SetFocus(), so do it in 100 msec.
 	# And the splitter window's sash position is placed incorrectly
@@ -674,7 +681,7 @@
 		$self->{inputBox}->SetFocus;
 	});
 	$mapDock->setShowFunc($self, sub {
-		$subSplitter->SplitVertically($itemList, $mapDock, -$mapDock->GetBestSize->GetWidth);
+		$subSplitter->SplitVertically($itemList, $mapDock, 220-$mapDock->GetBestSize->GetWidth);
 		$mapDock->Show(1);
 		$self->{inputBox}->SetFocus;
 	});
With this the default window size is larger and the status/inventory/expreport/map all open automatically.

I hope someone finds this useful, its made my bots much prettier.

saven
Noob
Noob
Posts: 2
Joined: 28 May 2011, 15:44
Noob?: No

Re: Interface Tweaks

#2 Post by saven »

Can you screenshot it for us? Minus all your personal information. If you have the time. Ty

arvo
Noob
Noob
Posts: 1
Joined: 31 Dec 2012, 11:52
Noob?: Yes

Re: Interface Tweaks

#3 Post by arvo »

Sorry for experimenting in necromancy and reviving this dead post but should anyone care to see what the above edits have done, here's a screenshot...

Image

The only thing I've not yet messed with is how to set the zoom on the map... Give me some time, it's my first day with the bot.

I run the bot on Ubuntu 12.10 should anyone care...

Locked