<< Back to Programming Forum   Search

Posts 1 - 10 of 10   
Clottie: 6/18/2014 01:12:53


professor dead piggy 
Level 59
Report
I am trying to set up authentication. As per the wiki

"While logged into your main WarLight account, visit http://warlight.net/CLOT/Config. In the CLOT Redirect URL field, insert a path to your CLOT's login page. For example, http://clot-test.appspot.com/login"

I cant find my clots login page. when i try to "leave" then i get the 'youre now leaving warlight, please dont get phished' and proceed to an error screen that seem to pop up a lot. "internal server error" "AttributeError: 'NoneType' object has no attribute 'playersParticipating'"
Clottie: 6/18/2014 01:14:27


professor dead piggy 
Level 59
Report
http://clot-test.appspot.com/join/5629499534213120 i ended up just using this. I assume thats the right thing even though it uses the word join instead of the word login. maybe i should just swap the word join for the word login. either way noone can join my clot atm.
Clottie: 6/18/2014 01:26:17


professor dead piggy 
Level 59
Report
is capitalisation of letters significant in python? I am just going through the join.py and leave.py files replacing instances of the phrase invite token with my invite token number. Its hard to know which ones im supposed to replace and which ones have to be left unchanged (if any?). I assume some need to be left unchanged because otherwise you end up with instances of 859472679 = 859472679 which surely cant mean anything. inviteToken = 859472679 surely makes more sense. i made the replacement twice in the join.py and once in the leave.py

Edited 6/18/2014 01:28:47
Clottie: 6/18/2014 01:50:16


professor dead piggy 
Level 59
Report
Once I make a change to a .py file do i need to recompile it or does that happen automatically? do i need to stop and rerun the app in the app engine?

Edited 6/18/2014 01:50:37
Clottie: 6/18/2014 02:07:01


professor dead piggy 
Level 59
Report
Oh there is a bit in the wiki about how to create a login page. It starts "Create a page on your CLOT website to receive player credentials". how does one create a page?
Clottie: 6/18/2014 02:17:04


Vulpes
Level 56
Report
What's with all these damn questions! Read a book. That is how Fizzer became a programmer.
Clottie: 6/18/2014 02:53:08


professor dead piggy 
Level 59
Report
He still hasnt told me which book. I didnt realise this was posted for the whole world, i assumed forum/all didnt include clot or help sub forums.

ive already started answering my first questions. ill work it out even if noone makes useful comments here, its just easier to think outloud.
Clottie: 6/18/2014 03:33:29


ChrisCMU 
Level 61
Report
Case matters in Python, yes. For every character position. Best to use an editor with auto completion to avoid messing that up. I used to use pyscripter, which was pretty good. Now i use Microsoft visual studios. I like it better. Both are free
Clottie: 6/18/2014 03:34:33


ChrisCMU 
Level 61
Report
And yes, you need to restart after every edit if you want to see results. Not recompile though. Just save and reload app (been a while but i think the right word is deploy it again. You don't have to stop the app.)

Edited 6/18/2014 03:35:25
Clottie: 6/18/2014 03:52:20

Fizzer 
Level 64

Warzone Creator
Report
clot-test.appspot.com is the test site I set up ages ago on Google App Engine. When you create your own CLOT, you'll get your own address to substitute in there. Even if it's just running on your own computer it's good enough for testing, but you'll want to upload it to Google App Engine before running it for real.
Posts 1 - 10 of 10