HOW TO: Get your registered users to the new PtX..
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

HOW TO: Get your registered users to the new PtX..

Started by Herodes, 02 April, 2005, 13:37:40

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Herodes

You can transfer your registered users to the xml fomat of the new PtokaX, using this script. I don't have any idea if the new PtokaX can do it on its own,.. so pls tell me if this effort is in vain ;P...

This is a very rough and untest script..
pls post feedback...
-- MoveRegs by Herodes v1

function Main()
	local f=io.open( "RegisteredUser.dat", "r");
	if f then
		for l in f:lines() do
			local s,e,nick,pass,prof = string.find( l, "^([^|]+)|([^|]+)|(%d+)$");
			AddRegUser(nick, pass, tonumber(prof));
		end
	else
		error("couldn't find RegisteredUsers.dat,.. make sure it is in your scripts folder..");
	end
end

Cid

when the new version came out i just put the files of the .rar in my ptokax folder started the hubsoft and the registered users of the old .dat were in the .xml. so i think it does it on its own.

Dessamator

#2
yap i agree, but it only does the converting during the first time, when u start the ptokax, if u try to add later, it doesnt do anything!!!, so i guess ur script might b usefull in some cases.
Ignorance is Bliss.

bastya_elvtars

QuoteOriginally posted by Dessamator
yap i agree, but it only does the converting during the first time, when u start the ptokax, if u try to add later, it doesnt do anything!!!, so i guess ur script might b usefull in some cases.

Why would you use it after upgrade? :S
Everything could have been anything else and it would have just as much meaning.

PPK

QuoteOriginally posted by Dessamator
 if u try to add later, it doesnt do anything!!!
It convert old config files only if new .xml not exist  :]
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

Madman

#5
QuoteOriginally posted by Dessamator
yap i agree, but it only does the converting during the first time, when u start the ptokax, if u try to add later, it doesnt do anything!!!, so i guess ur script might b usefull in some cases.

Yes it does...

if you have started it ones.. but forgot to convert your RegistedUsers.dat, all you have to do is open the cfg folder,
delete the RegistedUsers.xml and put the RegistedUsers.dat in the ptokax folder and then start ptokax,
and it's get converted...

same goes for PermBan.dat and Banlist.xml

it only tryes to convert RegistedUsers.dat if there is no RegistedUsers.xml

*Edit*

Damm PPK was faster ;p
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Dessamator

QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by Dessamator
yap i agree, but it only does the converting during the first time, when u start the ptokax, if u try to add later, it doesnt do anything!!!, so i guess ur script might b usefull in some cases.

Why would you use it after upgrade? :S
well simply because a person, might not know what sequence to follow, he might start ptokax then put the .dat files there!


QuoteIt convert old config files only if new .xml not exist
well, since thats the case there might not be much use for that script, but as you and many ppl know ,some ppl are just "hard -headed", they wouldnt understand what to delete, anyway, both approches work, although one is simpler than the other !
Ignorance is Bliss.

remaster-it

#7
the easiest way  i found  (has worked on all hubs  have done to so far)  


Stop the Ptokax  make  a back up of  the CFG folder to a nother area of the system  (my docs for example)
 
Then delete the the CFG folder


copy the DAT files from the earlier version (except the profile.dat) to the root directory of the new hub (where Ptokax.exe is)


Start the program  and the program  will recreate the cfg folder  and change the formats to the XML version  on its own  

if using robocop - copy 16.09HUB\scripts\profiles\PtokaX 16.07or higher\profile.xml  ..  and place in the CFG directory of the new Ver  ..  after restarting Ptokax

SMF spam blocked by CleanTalk