失礼、
>if (tc <> tc1) and (abs(tc.Point.X - tc1.Point.X) < 16) and
(abs(tc.Point.Y - tc1.Point.Y) < 16) then begin
(先の書き込みだと1行、読みにくくて申し訳ありません)
これは
if (abs(tc.Point.X - tc1.Point.X) < 16) and
(abs(tc.Point.Y - tc1.Point.Y) < 16) then begin
の間違いです。
>PT公平分配のバグ
Common.pas PartyDistribution内の
l := (tpa.EXP + (tpa.EXP div 10) * (m - 1)) div m + 1; //適当〜
w := (tpa.JEXP + (tpa.JEXP div 10) * (m - 1)) div m + 1; //適当〜
この二行を
l := (tpa.EXP + 1) div (m - 1);
w := (tpa.JEXP + 1) div (m - 1);
if 2 < m then begin
l := l + (tpa.EXP div 4) * (m - 2) div (m - 1);
w := w + (tpa.JEXP div 4) * (m - 2) div (m - 1);
end;
これに差し替えると、公平分配が正常に動作します。
Note: If this is a derivative of Athena, then you are required by law to post the source code for it, as it is an open source project and you have posted screenshots, which is a form of the open source project in question..
Note also, if it is a derivative of Yare or any other Open Source project and you post those screenshots then what I posted above is also valid.
Not obeying will lead to prosecution, and changing websites will just further the punishment
>>682
At first it's not a derivative of athena.
Old version of Weiss use athena's route search algorithm,
but now use different code. And other code is original.
Weiss official site is stop since 3 months ago. This site is not official.
however, Weiss is under GPL license, I prepare to open Weiss source code.
please wait for some time.
今日はじめてWeissを使い始めたのですがログインしてキャラを作成するまではいいのですが
「Access violation at address 0046531F in module 'Weiss.exe'.Read of adress 00000090」
と読み込み違反やでとでてゲームが始まりません。
何でこうなるんでしょうか?
//47バイト受信
while (len<47) do begin
len := Socket.ReceiveLength;
end;
if len >= 47 then begin
Socket.ReceiveBuf(buf, len);
if (buf[0] = $dd) and (buf[1] = $1) then begin
///////////////////
{
変更前
if len >= 55 then begin
Socket.ReceiveBuf(buf, len);
if (buf[0] = $64) and (buf[1] = $0) then begin
RFIFOL(2, l);
}
////////////////////
それと暗号化されているから取りあえずはパスワード無視
//if tp.Pass = userpass then begin
if tp.Pass <> userpass then begin