Shaiya Fighter Bot

For any other game that doesn't have its own section.
Post Reply
Message
Author
cronchris
Posts: 12
Joined: Mon Jul 07, 2008 10:46 am

Re: Shaiya Fighter Bot

#101 Post by cronchris » Fri Aug 01, 2008 12:28 pm

ok, it's still giving me the same global error message.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya Fighter Bot

#102 Post by Administrator » Fri Aug 01, 2008 4:14 pm

You've checked that micromacro/lib/mods/keyboard/en_us.lua is there and seems to contain proper information? And what your config file had the proper keyboard layout setting?

cronchris
Posts: 12
Joined: Mon Jul 07, 2008 10:46 am

Re: Shaiya Fighter Bot

#103 Post by cronchris » Sat Aug 02, 2008 11:05 am

Yeah, the shaiya.lua ran fine, that is untill i fixed the sprintf error. Now none of them will work, it's pretty wierd. As far as the /lib/mods/keyboard/en_us.lua it looks like it's fine.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya Fighter Bot

#104 Post by Administrator » Sat Aug 02, 2008 12:29 pm

Just comment out the sprintf()-using lines for now. You can, of course, do that by placing a -- in front of that line. Lines 389 and 455 need to be commented out of fight.lua.

centik
Posts: 51
Joined: Sat Apr 19, 2008 2:03 am

Re: Shaiya Fighter Bot

#105 Post by centik » Mon Aug 04, 2008 12:46 am

i saw this new game exe with multi-client from other forum..made by sir Jewbacca ..many tnx to him..

GG dont load at all
no-limits works
multi-client works (need to make bat file)
any name character works ( [GM],[GS] etch.. even curs words )


P.S

how do make bat file to make multi client work?

and i hope sir Jewbacca dont get mad at me for posting this..the other forum seems to be down for quite a while now
Attachments
game.rar
(898.52 KiB) Downloaded 185 times

Dnic
Posts: 24
Joined: Sun Jun 01, 2008 4:03 pm

Re: Shaiya Fighter Bot

#106 Post by Dnic » Mon Aug 04, 2008 7:27 am

centik wrote:i saw this new game exe with multi-client from other forum..made by sir Jewbacca ..many tnx to him..

GG dont load at all
no-limits works
multi-client works (need to make bat file)
any name character works ( [GM],[GS] etch.. even curs words )


P.S

how do make bat file to make multi client work?

and i hope sir Jewbacca dont get mad at me for posting this..the other forum seems to be down for quite a while now

You need to add the "start game" at then end of the target on the shortcut. Then you can click on it 2 different times for it to launch 2 clients.

Iphis
Posts: 5
Joined: Mon Aug 25, 2008 5:30 pm

Re: Shaiya Fighter Bot

#107 Post by Iphis » Mon Aug 25, 2008 5:32 pm

Hi guys, thanks for the script.....I'm having a small prob, all my char seems to do is self target then spin the camera around in circles....couldnt see a specific remedy to this problem, could someone help me out, Thanks in advance, Iph

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya Fighter Bot

#108 Post by Administrator » Tue Aug 26, 2008 12:06 am

Post your log.

Iphis
Posts: 5
Joined: Mon Aug 25, 2008 5:30 pm

Re: Shaiya Fighter Bot

#109 Post by Iphis » Tue Aug 26, 2008 7:11 am

Oop sorry heres the log
As you can see it keeps targeting itself and then says the colours white, not sure when I've done wrong, other bots seem to use the tilde key perfectly.

Thanks again
Attachments
Error.JPG

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya Fighter Bot

#110 Post by Administrator » Tue Aug 26, 2008 7:44 am

I don't need a screenshot of the window. I asked for a copy of the log.

Iphis
Posts: 5
Joined: Mon Aug 25, 2008 5:30 pm

Re: Shaiya Fighter Bot

#111 Post by Iphis » Tue Aug 26, 2008 8:17 am

Sorry such a nub
Attachments
log.txt
(556 Bytes) Downloaded 156 times

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya Fighter Bot

#112 Post by Administrator » Tue Aug 26, 2008 9:21 am

Well, it certainly seems to be having trouble reading from the HDC. Did you minimize the window or something? Or have another window over top? The pixel reading does not work unless the window it is reading from is not being covered and is not minimized.

Acekiller
Posts: 3
Joined: Wed Aug 27, 2008 3:54 pm

Re: Shaiya Fighter Bot

#113 Post by Acekiller » Wed Aug 27, 2008 4:30 pm

hi, i just tried out your script, in the beginning i had a hard time getting it to attack, then i realize the problem was my personal status bar covering the target bar, tats y it wouldn't attack.

then i found out it wasn't resting or doing pot as it suppose to, which was taken care of by placing my status bar to the right of the target bar.

now it seems to work fine, hopefully it will help ppl who had the same prob as i did.


looking forward to ur updated edition!!

Thanks a lot for your great work!

Iphis
Posts: 5
Joined: Mon Aug 25, 2008 5:30 pm

Re: Shaiya Fighter Bot

#114 Post by Iphis » Thu Aug 28, 2008 1:39 pm

Sorry to be a pain....been fighting with the code....with my limited knowledge of C but still cant work out why its spamming F1 the self target key, then spinning camera which seems to be the reattack code but not sure why heres an updated log, thanks again, Iph
Attachments
log.txt
(2.92 KiB) Downloaded 135 times

Acekiller
Posts: 3
Joined: Wed Aug 27, 2008 3:54 pm

Re: Shaiya Fighter Bot

#115 Post by Acekiller » Thu Aug 28, 2008 4:25 pm

the only bug that i see now is sometiems it doesnt' pick up items nor do the buffs..

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya Fighter Bot

#116 Post by Administrator » Fri Aug 29, 2008 5:46 am

Iphis: It's having trouble reading from the handle to device context, meaning it cannot read the screen's pixels. Are you using Windows XP or Vista? Did you follow the instructions in the first post exactly?

Acekiller
Posts: 3
Joined: Wed Aug 27, 2008 3:54 pm

Re: Shaiya Fighter Bot

#117 Post by Acekiller » Sat Aug 30, 2008 5:00 am

i dunno y, but suddenly it stopped doing pots or resting, but i didn't touch those cmmand at all. is there any hint of y it is not working?

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya Fighter Bot

#118 Post by zer0 » Sun Sep 07, 2008 7:11 am

Hi, I created a CONFIG loader function for zs_shaiya, and I think you will find it very helpful.

As you can see, it will be able to read the CONFIG values and particularly X,Y offsets to the status info bar offsets, so it will no longer have to be set at position (0,0).
The downside is that you can't re-position it in game or it will no longer work (since the values are only written to the CONFIG file once it is closed).

This is an extract from my code so apologies for any errors.

Code: Select all

g_install_path = "C:\\Program Files (x86)\\Shaiya\\";
g_cfg = load_config();
g_interface = "INTERFACE_" .. g_cfg.VIDEO.SIZE_X .. "X" .. g_cfg.VIDEO.SIZE_Y
--debug_message("interface=" .. g_interface)
local  l_infobar = {
    x=g_cfg[g_interface].STATUSINFOBAR_POS_X,
    y=g_cfg[g_interface].STATUSINFOBAR_POS_Y}

-- Loads the Shaiya config.
-- @returns the config array.
function load_config()
  local l_config = {}
  local l_file = assert(io.open(g_install_path .. "CONFIG.INI", "r"))
  
  for line in l_file:lines() do
    --debug_message(line)
    if (string.find(line, "%[(.*)%]") ~= nil) then
      local l_group = string.sub(line,
        (string.find(line, "%[") + 1), 
        (string.find(line, "%]") - 1))
      --debug_message("group: " .. l_group)
      l_config[l_group] = {}
      for config in l_file:lines() do
        if (config == "") then
          break;
        end
        local l_delim = string.find(config, "=")
        if (l_delim ~= nil) then
          local l_key = string.sub(config, 1, (l_delim-1))
          local l_val = string.sub(config, (l_delim+1))
          l_config[l_group][l_key] = l_val
          --debug_message("l_config." .. l_group .. "." .. l_key .. "=" .. l_config[l_group][l_key])
        end
      end
    end
  end
  return l_config
end
Enjoy. ;)

Jolt981
Posts: 4
Joined: Tue Sep 09, 2008 9:18 pm

Re: Shaiya Fighter Bot

#119 Post by Jolt981 » Tue Sep 09, 2008 9:19 pm

First and foremost, I'm no genius as far as LUA goes, this is my first real attempt to understand it.
I've been fighting with this script for upwards of 2 hours now, and I'm sure it's something simple, so I figured I'd ask.
Edit: I believe I've figured out the problem, it seems as though my tilde key doesn't work. It doesn't target another monster. Any remedy for this? I hit roughly every button on my keyboard, none seem to do it o.o

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya Fighter Bot

#120 Post by zer0 » Wed Sep 10, 2008 8:58 pm

@Jolt981
Make sure your Keyboard configuration is set to US Keyboard, and not US International or any other keyboard layouts.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest