Jump to content
  • 0

How to enable Attendance System in 2018-06-21 client?


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

What is the problem with my client? I still cant open and saying You are not allowed to use the attendance system.

db/import/attendance.yml

Header:
  Type: ATTENDANCE_DB
  Version: 1
  
Body:
#  - Start: 20190423
#    End: 20191231
#    Rewards:
#      - Day: 1
#        ItemId: 22979
#      - Day: 2
#        ItemId: 6316
#      - Day: 3
#        ItemId: 12265
#        Amount: 5
#      - Day: 4
#        ItemId: 23047
#        Amount: 5
#      - Day: 5
#        ItemId: 23038
#      - Day: 6
#        ItemId: 23043
#      - Day: 7
#        ItemId: 23340
#        Amount: 3
#      - Day: 8
#        ItemId: 12516
#        Amount: 5
#      - Day: 9
#        ItemId: 23307
#        Amount: 5
#      - Day: 10
#        ItemId: 12610
#      - Day: 11
#        ItemId: 14533
#        Amount: 2
#      - Day: 12
#        ItemId: 23012
#        Amount: 3
#      - Day: 13
#        ItemId: 23048
#        Amount: 5
#      - Day: 14
#        ItemId: 12264
#        Amount: 5
#      - Day: 15
#        ItemId: 23046
#        Amount: 5
#      - Day: 16
#        ItemId: 12515
#        Amount: 5
#      - Day: 17
#        ItemId: 12522
#        Amount: 5
#      - Day: 18
#        ItemId: 12523
#        Amount: 5
#      - Day: 19
#        ItemId: 6234
#      - Day: 20
#        ItemId: 22845

CheckAttendance.lub

Config = {
	StartDate = 20190423,
	EndDate = 20191231
}

Reward = {
    { 1,	22979,	1	},
    { 2,	6316,	1	},
    { 3,	12265,	5	},
    { 4,	23047,	5	},
    { 5,	23038,	1	},
    { 6,	23043,	1	},
    { 7,	23340,	3	},
    { 8,	12516,	5	},
    { 9,	23307,	5	},
    { 10,	12610,	1	},
    { 11,	14533,	2	},
    { 12,	23012,	3	},
    { 13,	23048,	5	},
    { 14,	12264,	5	},
    { 15,	23046,	5	},
    { 16,	12515,	5	},
    { 17,	12522,	5	},
    { 18,	12523,	5	},
    { 19,	6234,	1 	},
    { 20,	22845,	1	}
}

function main()
	result, msg = InsertCheckAttendanceConfig(Config.EvendOnOff, Config.StartDate, Config.EndDate)
	if not result then
		return false, msg
	end
	for k, rewardtbl in pairs(Reward) do
		result, msg = InsertCheckAttendanceReward(rewardtbl[1], rewardtbl[2], rewardtbl[3])
		if not result then
			return false, msg
		end
	end
	return true, "success"
end

 

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

5 hours ago, nasagnilac said:

You are not allowed to use the attendance system.

you need to give the group you want the permission to use it

https://github.com/rathena/rathena/blob/ce1508a01c68dee80544242b470987742f3b3ece/conf/groups.conf#L96

attendance: true

 

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  197
  • Reputation:   19
  • Joined:  11/20/11
  • Last Seen:  

remove all the #

then restart server

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

Another issue..

image.png.098e12b0d7267e6eddc3e9ca133d1254.png

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

1 hour ago, nasagnilac said:

Another issue..

image.png.098e12b0d7267e6eddc3e9ca133d1254.png

this from the client side CheckAttendance.lub

of server side attendance.yml

just make sure that you have the correct date on both

also as the reply from mirabell about attendance.yml

# << line start with '#' does not count

 

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

Do I need to use <tab> for spacing?

Issue was solved...make sure that item id is available in the db. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

On 4/23/2019 at 4:53 AM, sader1992 said:

this from the client side CheckAttendance.lub

of server side attendance.yml

just make sure that you have the correct date on both

also as the reply from mirabell about attendance.yml


# << line start with '#' does not count

 

Still not working for me with same error 

The date is same in the lub file and the yml file

Any help please @sader1992?

Edited by Diana
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

Same problem Here! help
attend.png.fb59209b4a1af2baa8596d51529272e4.png

CheckAttendance.lub

Config = {
	StartDate = 20200601,
	EndDate = 20201231
}

Reward = {
	{ 1, 501, 1 },
	{ 2, 501, 1 },
	{ 3, 501, 5 },
	{ 4, 501, 5 },
	{ 5, 501, 1 },
	{ 6, 501, 1 },
	{ 7, 501, 3 },
	{ 8, 501, 5 },
	{ 9, 501, 5 },
	{ 10, 501, 1 },
	{ 11, 501, 2 },
	{ 12, 501, 3 },
	{ 13, 501, 5 },
	{ 14, 501, 5 },
	{ 15, 501, 5 },
	{ 16, 501, 5 },
	{ 17, 501, 5 },
	{ 18, 501, 5 },
	{ 19, 501, 10 },
	{ 20, 501, 1 }
}

function main()
	result, msg = InsertCheckAttendanceConfig(Config.EvendOnOff, Config.StartDate, Config.EndDate)
	if not result then
		return false, msg
	end
	for k, rewardtbl in pairs(Reward) do
		result, msg = InsertCheckAttendanceReward(rewardtbl[1], rewardtbl[2], rewardtbl[3])
		if not result then
			return false, msg
		end
	end
	return true, "success"
end

Attendance YML

# This file is a part of rAthena.
#   Copyright(C) 2019 rAthena Development Team
#   https://rathena.org - https://github.com/rathena
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###########################################################################
# Attendance Database
###########################################################################
#
# Attendance Settings
#
###########################################################################
# - Start                   Start date.
#   End                     End date.
#   Rewards:                List of rewards for each day.
#     - Day                 Reward day.
#       ItemId              Item ID.
###########################################################################

Header:
  Type: ATTENDANCE_DB
  Version: 1
 
Body:
  - Start: 20200601
    End: 20201231
    Rewards:
      - Day: 1
        ItemId: 501
        Amount: 2
      - Day: 2
        ItemId: 501
        Amount: 2
      - Day: 3
        ItemId: 501
        Amount: 2
      - Day: 4
        ItemId: 501
        Amount: 2
      - Day: 5
        ItemId: 501
        Amount: 2
      - Day: 6
        ItemId: 501
        Amount: 2
      - Day: 7
        ItemId: 501
        Amount: 2
      - Day: 8
        ItemId: 501
        Amount: 2
      - Day: 9
        ItemId: 501
        Amount: 2
      - Day: 10
        ItemId: 501
        Amount: 2
      - Day: 11
        ItemId: 501
        Amount: 2
      - Day: 12
        ItemId: 501
        Amount: 2
      - Day: 13
        ItemId: 501
        Amount: 2
      - Day: 14
        ItemId: 501
        Amount: 2
      - Day: 15
        ItemId: 501
        Amount: 2
      - Day: 16
        ItemId: 501
        Amount: 2
      - Day: 17
        ItemId: 501
        Amount: 2
      - Day: 18
        ItemId: 501
        Amount: 2
      - Day: 19
        ItemId: 501
        Amount: 2
      - Day: 20
        ItemId: 501
        Amount: 2

Battleconf checked

Permissions checked.

Why still giving me the currently no attendance check event?

I used your generator from this link
https://secretdataz.github.io/attendance-generator/

Is not  opening!

Edited by iraciz
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

Worked now... I exported the .yml files to all posible locations, import, de, and db_pre.re

attend.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  02/15/13
  • Last Seen:  

21 hours ago, iraciz said:

Worked now... I exported the .yml files to all posible locations, import, de, and db_pre.re

attend.png

you are not allowed to use the attendance system

my sever..

Config = {
	StartDate = 20200601,
	EndDate = 20201231
}
Header:
  Type: ATTENDANCE_DB
  Version: 1
 
Body:
  - Start: 20200601
    End: 20201231
    Rewards:

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   7
  • Joined:  11/07/15
  • Last Seen:  

I found three issues that was causing the attendance scripts not to work. The first issue was caused by the attendance generator website which is a great shortcut to get a working attendance system up and running.

Issue was in attendance.lub client side. The header that states what generates the code needs a # in front of it or the script wont run, as it loads in with errors. Example:

-- Generated with Secret's Attendance Generator version 1.1.0

This should look like:

# -- Generated with Secret's Attendance Generator version 1.1.0

The second problem is that the item IDs must all exist, yet ones that came with the server package had one on line 7 that no longer exists. If even one item id gives an error, the entire script will not load and return a message that there is no active event. Many websites show item ids, google and test them.

Third Issue was fact that despite Im running renewal, the server was loading in from imports database folder instead. I ended up doing the same as another user by copying my finished attendance.yml to main db folder, re db folder, and Imports db folder. 

 

Now, many stated only normal users can use the attendance feature. I myself felt any and all users including help should benefit. Each group I wanted to have this feature I added under permissions, not commands:

attendance: true

 

I have this fully working on my new server. If you get complaints of items not being received, tell them to check their email as these items do not go straight to inventory, they get collected from message. Remind players to make sure they have free space as well.

Edited by Xanthor
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/18/19
  • Last Seen:  

My Problem the same i slove with

Header:
  Type: ATTENDANCE_DB
  Version: 1
Body:  << ( Change from "Attendance: " )

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  126
  • Reputation:   4
  • Joined:  10/31/12
  • Last Seen:  

maybe thy forgat

// Attendance System (Note 1)
// Requires: 2018-03-07bRagexeRE or later
feature.attendance: on

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...