Python Forum
I need help finding an error in this code I have
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help finding an error in this code I have
#1
Hello! Recently I have been modifying the source of Toontown: Stride to make my own modifications. I have used a file called Suit.PY. With my most recent modification, I tried to use a file path command shown in a tutorial I was watching to modify the code to change Toontown cog heads. When I try and start after the modifications, it says there is a syntax error at the closing quotes.
filepath'phase_12/models/bossbotHQ/mole_cog'
^
I have no clue why its classified as an invalid syntax, could somebody help with fixing it? Here is the code that I was using.

if headType == "downsizer" and self.style.body == 'a':
    filepath = 'phase_4/models/char/suitB-heads'
elif headtype == 'mole_cog':
    filepath 'phase_12/models/bossbotHQ/mole_cog'
else:
Reply
#2
missing = on line #4
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error is finding mean of a list PythonBoy 4 844 Sep-11-2023, 02:38 PM
Last Post: PythonBoy
  (OpenCV) Help to improve code for object detection and finding center of it saoko 0 1,159 May-14-2022, 05:34 PM
Last Post: saoko
  code for finding a cables crossed the bondary of the city spider_pytthon 8 3,471 Dec-24-2019, 07:23 AM
Last Post: spider_pytthon
  capture next block of text after finding error in file kdefilip2 6 3,340 Nov-27-2019, 07:36 PM
Last Post: buran
  code wanted: finding absent characters Skaperen 2 2,898 Mar-26-2018, 03:12 AM
Last Post: Skaperen
  Getting error in finding time.time() value in python Lakshana 1 2,463 Jan-11-2018, 07:07 AM
Last Post: wavic
  Trouble finding Python code Larz60+ 5 4,291 Jun-02-2017, 01:30 PM
Last Post: sparkz_alot
  Finding dead code Ofnuts 6 8,465 Dec-20-2016, 09:00 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020